diff --git a/youtube_dl.go b/youtube_dl.go index 5139e1a..ff39510 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 + ".m4a" + return dl.id + "." + dl.format } // Duration returns duration for the Song.