1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-09 12:42:28 +01:00

Merge remote-tracking branch 'drags/yt-feed-loadmore'

This commit is contained in:
Philipp Hagemeister 2014-09-13 07:14:19 +02:00
commit 9b583dca4c

View File

@ -1397,6 +1397,7 @@ def _real_extract(self, url):
u'%s feed' % self._FEED_NAME,
u'Downloading page %s' % i)
feed_html = info.get('feed_html') or info.get('content_html')
load_more_widget_html = info.get('load_more_widget_html') or feed_html
m_ids = re.finditer(r'"/watch\?v=(.*?)["&]', feed_html)
ids = orderedSet(m.group(1) for m in m_ids)
feed_entries.extend(
@ -1404,7 +1405,7 @@ def _real_extract(self, url):
for video_id in ids)
mobj = re.search(
r'data-uix-load-more-href="/?[^"]+paging=(?P<paging>\d+)',
feed_html)
load_more_widget_html)
if mobj is None:
break
paging = mobj.group('paging')