mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-05 14:28:40 +01:00
Ignore invalid urls generated when calling Autoplay
This commit is contained in:
parent
3f2faf818a
commit
5e80221e18
@ -51,11 +51,18 @@ PlaylistItemList GroovesharkRadio::Generate() {
|
|||||||
} else {
|
} else {
|
||||||
song = service_->StartAutoplay(autoplay_state_);
|
song = service_->StartAutoplay(autoplay_state_);
|
||||||
}
|
}
|
||||||
|
// If the song url isn't valid, stop here
|
||||||
|
if (song.url().toString() == "grooveshark://0/0/0") {
|
||||||
|
return items;
|
||||||
|
}
|
||||||
PlaylistItemPtr playlist_item = PlaylistItemPtr(new InternetPlaylistItem(service_, song));
|
PlaylistItemPtr playlist_item = PlaylistItemPtr(new InternetPlaylistItem(service_, song));
|
||||||
items << playlist_item;
|
items << playlist_item;
|
||||||
first_time_ = false;
|
first_time_ = false;
|
||||||
}
|
}
|
||||||
Song song = service_->GetAutoplaySong(autoplay_state_);
|
Song song = service_->GetAutoplaySong(autoplay_state_);
|
||||||
|
if (song.url().toString() == "grooveshark://0/0/0") {
|
||||||
|
return items;
|
||||||
|
}
|
||||||
PlaylistItemPtr playlist_item = PlaylistItemPtr(new InternetPlaylistItem(service_, song));
|
PlaylistItemPtr playlist_item = PlaylistItemPtr(new InternetPlaylistItem(service_, song));
|
||||||
items << playlist_item;
|
items << playlist_item;
|
||||||
return items;
|
return items;
|
||||||
|
Loading…
Reference in New Issue
Block a user