aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-03-28 14:25:23 +0200
committerdec05eba <dec05eba@protonmail.com>2021-03-28 14:25:23 +0200
commit861a023946b660a4e2acead9c1dd02f13b60e579 (patch)
tree57274ff360a0a32f67546e47480438add1ec9404
parent84a0496d635cad9c49ea76117f71aa7e3ac964ed (diff)
Soundcloud: the next audio is sometimes the previous one because url changes. Fix that
-rw-r--r--src/QuickMedia.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index e94ba34..e3f13de 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -2048,6 +2048,7 @@ namespace QuickMedia {
if(watched_videos.find((*it)->url) == watched_videos.end() && !video_page->video_should_be_skipped((*it)->url)) {
new_video_url = (*it)->url;
new_video_title = (*it)->get_title();
+ related_videos.erase(it);
break;
}
}