Call extracted property age_limit everywhere
This commit is contained in:
parent
8dbe9899a9
commit
cfadd183c4
4 changed files with 4 additions and 4 deletions
|
@ -313,7 +313,7 @@ class YoutubeDL(object):
|
|||
return u'[download] %s upload date is not in range %s' % (date_from_str(date).isoformat(), dateRange)
|
||||
age_limit = self.params.get('age_limit')
|
||||
if age_limit is not None:
|
||||
if age_limit < info_dict.get('age_restriction', 0):
|
||||
if age_limit < info_dict.get('age_limit', 0):
|
||||
return u'Skipping "' + title + '" because it is age restricted'
|
||||
return None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue