projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e050d5
)
[extractor/common] Improve is_suitable
author
Sergey M․
<dstftw@gmail.com>
Tue, 26 Jul 2016 16:54:06 +0000
(23:54 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 26 Jul 2016 16:54:06 +0000
(23:54 +0700)
In order to fix breakage introduced by
a3aa814b774a413d9e7f4fbfadf06fe6dcc59b25
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index b8a76e3cb4ae98810fc8c8fe491ff518922b5700..53c28f016065195b9e26849cbab75825a8cdcaa0 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-1786,7
+1786,7
@@
class InfoExtractor(object):
any_restricted = False
for tc in self.get_testcases(include_onlymatching=False):
- if
'playlist' in tc
:
+ if
tc.get('playlist', [])
:
tc = tc['playlist'][0]
is_restricted = age_restricted(
tc.get('info_dict', {}).get('age_limit'), age_limit)