1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-17 20:09:50 +01:00

When playing a last.fm stream, don't scrobble the next item in the playlist in between each track of the last.fm stream. Fixes issue 1943

This commit is contained in:
David Sansome 2011-08-28 02:59:19 +01:00
parent 27e837a8bb
commit 2cbe90c2e5

View File

@ -410,6 +410,16 @@ void Player::TogglePrettyOSD() {
}
void Player::TrackAboutToEnd() {
// If the current track was from a URL handler then it might have special
// behaviour to queue up a subsequent track. We don't want to preload (and
// scrobble) the next item in the playlist if it's just going to be stopped
// again immediately after.
if (playlists_->active()->current_item()) {
const QUrl url = playlists_->active()->current_item()->Url();
if (url_handlers_.contains(url.scheme()))
return;
}
const bool has_next_row = playlists_->active()->next_row() != -1;
PlaylistItemPtr next_item;