aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-04-18 07:28:24 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-04-18 07:28:43 +0200
commitfeba604e9256b48972dfe4b5658ada4b300581cd (patch)
tree10d63b0c7487853c3053a256f3ed5ab78a0a2dde /youtube_dl
parentd22f65413af51b24166de20d85d69f7525a70e25 (diff)
downloadyoutube-dl-feba604e9256b48972dfe4b5658ada4b300581cd.tar.xz
Fix playlists with size 50i āˆ€ iāˆ‰ā„• (Closes #782)
Diffstat (limited to 'youtube_dl')
-rwxr-xr-xyoutube_dl/InfoExtractors.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
index cf31970ef..bac3a747d 100755
--- a/youtube_dl/InfoExtractors.py
+++ b/youtube_dl/InfoExtractors.py
@@ -1778,9 +1778,13 @@ class YoutubePlaylistIE(InfoExtractor):
self._downloader.report_error(u'Invalid JSON in API response: ' + compat_str(err))
return
- if not 'feed' in response or not 'entry' in response['feed']:
+ if 'feed' not in response:
self._downloader.report_error(u'Got a malformed response from YouTube API')
return
+ if 'entry' not in response['feed']:
+ # Number of videos is a multiple of self._MAX_RESULTS
+ break
+
videos += [ (entry['yt$position']['$t'], entry['content']['src'])
for entry in response['feed']['entry']
if 'content' in entry ]