mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-06-30 11:02:51 -05:00
[utils] Default age_limit to None
If we can't parse it, it means we don't have any information, not that the content is unrestricted.
This commit is contained in:
@ -1576,9 +1576,9 @@ US_RATINGS = {
|
||||
|
||||
def parse_age_limit(s):
|
||||
if s is None:
|
||||
return 0
|
||||
return None
|
||||
m = re.match(r'^(?P<age>\d{1,2})\+?$', s)
|
||||
return int(m.group('age')) if m else US_RATINGS.get(s, 0)
|
||||
return int(m.group('age')) if m else US_RATINGS.get(s, None)
|
||||
|
||||
|
||||
def strip_jsonp(code):
|
||||
|
Reference in New Issue
Block a user