From: Jaime Marquínez Ferrándiz Date: Wed, 18 Sep 2013 21:00:32 +0000 (+0200) Subject: [youtube] apply the fix for lists with number of videos multiple of _MAX_RESULTS... X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=71c82637e7add9b437bc6dbe03035d6d8aae82e4;p=youtube-dl [youtube] apply the fix for lists with number of videos multiple of _MAX_RESULTS to user extraction Copied from the playlist extractor. --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index f227e2086..23a8097c5 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1005,6 +1005,9 @@ class YoutubeUserIE(InfoExtractor): response = json.loads(page) except ValueError as 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 ids_in_page = []