Fix playlist download url

This commit is contained in:
Adam Lavin 2021-03-29 09:50:36 +01:00
parent 293fd535c4
commit eb02ff48c2
No known key found for this signature in database
GPG key ID: 9C4C68AFA9CA6461

View file

@ -314,7 +314,7 @@ class Playlist extends Model implements Searchable, Commentable, Favouritable
public function getDownloadUrl($format)
{
return action([PlaylistsController::class, 'getDownload'], ['id' => $this->id, 'format' => Track::$Formats[$format]['extension']]);
return action([PlaylistsController::class, 'getDownload'], ['id' => $this->id, 'extension' => Track::$Formats[$format]['extension']]);
}
public function getCoverUrl($type = Image::NORMAL)