0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-22 06:00:00 +00:00

[youtube] apply the fix for lists with number of videos multiple of _MAX_RESULTS to user extraction

Copied from the playlist extractor.
This commit is contained in:
Jaime Marquínez Ferrándiz 2013-09-18 23:00:32 +02:00
parent 2dad310e2c
commit 71c82637e7

View file

@ -1005,6 +1005,9 @@ def _real_extract(self, url):
response = json.loads(page) response = json.loads(page)
except ValueError as err: except ValueError as err:
raise ExtractorError(u'Invalid JSON in API response: ' + compat_str(err)) raise ExtractorError(u'Invalid JSON in API response: ' + compat_str(err))
if 'entry' not in response['feed']:
# Number of videos is a multiple of self._MAX_RESULTS
break
# Extract video identifiers # Extract video identifiers
ids_in_page = [] ids_in_page = []