Browse Source

[youtube] Fix extraction of the feed 'paging' values (fixes #2925)

totalwebcasting
Jaime Marquínez Ferrándiz 11 years ago
parent
commit
05ee2b6dad
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      youtube_dl/extractor/youtube.py

+ 5
- 2
youtube_dl/extractor/youtube.py View File

@ -1775,9 +1775,12 @@ class YoutubeFeedsInfoExtractor(YoutubeBaseInfoExtractor):
feed_entries.extend( feed_entries.extend(
self.url_result(video_id, 'Youtube', video_id=video_id) self.url_result(video_id, 'Youtube', video_id=video_id)
for video_id in ids) for video_id in ids)
if info['paging'] is None:
mobj = re.search(
r'data-uix-load-more-href="/?[^"]+paging=(?P<paging>\d+)',
feed_html)
if mobj is None:
break break
paging = info['paging']
paging = mobj.group('paging')
return self.playlist_result(feed_entries, playlist_title=self._PLAYLIST_TITLE) return self.playlist_result(feed_entries, playlist_title=self._PLAYLIST_TITLE)
class YoutubeSubscriptionsIE(YoutubeFeedsInfoExtractor): class YoutubeSubscriptionsIE(YoutubeFeedsInfoExtractor):


Loading…
Cancel
Save