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:
parent
a81f934047
commit
d84260b030
|
@ -167,7 +167,7 @@ func (dl *AudioTrack) ID() string {
|
||||||
|
|
||||||
// Filename returns the filename of the Song.
|
// Filename returns the filename of the Song.
|
||||||
func (dl *AudioTrack) Filename() string {
|
func (dl *AudioTrack) Filename() string {
|
||||||
return dl.id + ".m4a"
|
return dl.id + "." + dl.format
|
||||||
}
|
}
|
||||||
|
|
||||||
// Duration returns duration for the Song.
|
// Duration returns duration for the Song.
|
||||||
|
|
Reference in a new issue