diff --git a/service_youtube.go b/service_youtube.go index 268ec73..008e9d4 100644 --- a/service_youtube.go +++ b/service_youtube.go @@ -91,7 +91,7 @@ func (yt YouTube) NewSong(user *gumble.User, id, offset string, playlist Playlis offset: int(yt.parseTime(offset, `T\=(?P\d+D)?(?P\d+H)?(?P\d+M)?(?P\d+S)?`).Seconds()), duration: int(yt.parseTime(duration, `P(?P\d+D)?T(?P\d+H)?(?P\d+M)?(?P\d+S)?`).Seconds()), thumbnail: thumbnail, - format: "m4a", + format: "bestaudio", skippers: make([]string, 0), playlist: playlist, dontSkip: false, diff --git a/youtube_dl.go b/youtube_dl.go index ff39510..5139e1a 100644 --- a/youtube_dl.go +++ b/youtube_dl.go @@ -167,7 +167,7 @@ func (dl *AudioTrack) ID() string { // Filename returns the filename of the Song. func (dl *AudioTrack) Filename() string { - return dl.id + "." + dl.format + return dl.id + ".m4a" } // Duration returns duration for the Song.