mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-24 00:29:53 -05:00
unpack ie_result for youtube:tab too
This commit is contained in:
parent
ab0a8acd70
commit
4606a95a8e
@ -375,7 +375,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…
x
Reference in New Issue
Block a user