mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-26 11:01:56 +00:00
[extractor/common] Improve is_suitable
In order to fix breakage introduced by a3aa814b77
This commit is contained in:
parent
3e050d51d4
commit
40090e8d51
1 changed files with 1 additions and 1 deletions
|
@ -1786,7 +1786,7 @@ def is_suitable(self, age_limit):
|
|||
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue