[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
1 changed files with 2 additions and 0 deletions

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)