Skip to content

Commit

Permalink
might have no song for url
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe44 committed Jul 2, 2021
1 parent e7918bb commit f64bd2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/Plugin/Deezer/ProtocolHandler.pm
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ sub getMetadataFor {
my $cache = Slim::Utils::Cache->new;

# need to take the real current track url for playlists
$url = $song->currentTrack->url if $song->isPlaylist;
$url = $song->currentTrack->url if $song && $song->isPlaylist;

# If metadata is not here, fetch it so the next poll will include the data
my ($trackId, $format) = _getStreamParams($url);
Expand Down

0 comments on commit f64bd2d

Please sign in to comment.