realized that having bestaudio as a file extension is perfectly valid in this case so there is no need to tack m4a on arbitrarily

This commit is contained in:
Michael Pacella 2016-02-11 01:13:22 -05:00
parent a81f934047
commit d84260b030

View file

@ -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.