mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-09-17 11:14:44 -04:00
Merge branch 'youtube-watch-page-scope' into qa
This commit is contained in:
commit
a2635963c9
1 changed files with 2 additions and 1 deletions
|
@ -377,7 +377,8 @@ def do_youtube_dl(worker, site, page):
|
|||
ydl = _build_youtube_dl(worker, tempdir, site, page)
|
||||
ie_result = _try_youtube_dl(worker, ydl, site, page)
|
||||
outlinks = set()
|
||||
if ie_result and ie_result.get('extractor') == 'youtube:playlist':
|
||||
if ie_result and (ie_result.get('extractor') == 'youtube:playlist' or
|
||||
ie_result.get('extractor') == 'youtube:tab'):
|
||||
# youtube watch pages as outlinks
|
||||
outlinks = {'https://www.youtube.com/watch?v=%s' % e['id']
|
||||
for e in ie_result.get('entries_no_dl', [])}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue