summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2016-07-26 23:54:06 +0700
committerSergey M․ <[email protected]>2016-07-26 23:54:06 +0700
commit40090e8d519f88c85ce65d8e882093d8ab26e368 (patch)
tree69eead62ba5dd2c1350e664fab82c863e3e10344
parent3e050d51d4752e89269c5ae82cf4f0f49ad424b8 (diff)
downloadyoutube-dl-40090e8d519f88c85ce65d8e882093d8ab26e368.tar.gz
youtube-dl-40090e8d519f88c85ce65d8e882093d8ab26e368.zip
[extractor/common] Improve is_suitable
In order to fix breakage introduced by a3aa814b774a413d9e7f4fbfadf06fe6dcc59b25
-rw-r--r--youtube_dl/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index b8a76e3cb..53c28f016 100644
--- 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)