[rhythmbox: 3/6] soundcloud: do not add marker when we don't have any more data
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox: 3/6] soundcloud: do not add marker when we don't have any more data
- Date: Sat, 20 Jun 2020 11:40:42 +0000 (UTC)
commit 514c7f4b9d053716efb8b1fafa357ecebcecef05
Author: crvi <crvisqr gmail com>
Date: Fri Feb 7 15:47:11 2020 +0530
soundcloud: do not add marker when we don't have any more data
plugins/soundcloud/soundcloud.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plugins/soundcloud/soundcloud.py b/plugins/soundcloud/soundcloud.py
index 85986fd73..fb8e1ee1c 100644
--- a/plugins/soundcloud/soundcloud.py
+++ b/plugins/soundcloud/soundcloud.py
@@ -238,10 +238,9 @@ class SoundCloudSource(RB.StreamingSource):
for item in stuff['collection']:
self.add_container(item)
- if 'next_href' in stuff:
+ self.more_containers_url = stuff.get('next_href')
+ if self.more_containers_url:
self.add_container_marker()
- self.more_containers_url = stuff.get('next_href')
-
def resolve_api_cb(self, data):
if data is None:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]