A feature-rich command-line audio/video downloader
[extractor/common] Improve is_suitable
Sergey M․40090e8d519f
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.pyindex b8a76e3cb4..53c28f0160 100644--- a/youtube_dl/extractor/common.py+++ b/youtube_dl/extractor/common.py@@ -1786,7 +1786,7 @@ class InfoExtractor(object):any_restricted = Falsefor 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)