[soundcloud:playlist] Detect last page correctly

Closes #1168
This commit is contained in:
pukkandan 2021-10-05 08:33:36 +05:30
parent 4e3d1898a8
commit 644149afec
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698

View file

@ -707,6 +707,8 @@ class SoundcloudPagedPlaylistBaseIE(SoundcloudIE):
yield resolve_entry(e, e.get('track'), e.get('playlist')) yield resolve_entry(e, e.get('track'), e.get('playlist'))
url = response.get('next_href') url = response.get('next_href')
if not url:
break
query.pop('offset', None) query.pop('offset', None)