youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 71c82637e7add9b437bc6dbe03035d6d8aae82e4
parent 2dad310e2cab1913ed1a8d1072b57b46e7257b1e
Author: Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Date:   Wed, 18 Sep 2013 23:00:32 +0200

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

Copied from the playlist extractor.

Diffstat:
Myoutube_dl/extractor/youtube.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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 = []