aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
diff options
context:
space:
mode:
author2ShedsJackson <50157910+2ShedsJackson@users.noreply.github.com>2021-03-20 03:41:11 -0700
committerGitHub <noreply@github.com>2021-03-20 16:11:11 +0530
commit5c5fae6d2fd94f3845ec187a1ea29cb17ed83440 (patch)
treee41127a4aeb8c34e075fe1a500ce483827e6a2f3 /yt_dlp/utils.py
parentc1d3a4a8f0be5888d6d935b5cee150b3379996cb (diff)
downloadhypervideo-pre-5c5fae6d2fd94f3845ec187a1ea29cb17ed83440.tar.lz
hypervideo-pre-5c5fae6d2fd94f3845ec187a1ea29cb17ed83440.tar.xz
hypervideo-pre-5c5fae6d2fd94f3845ec187a1ea29cb17ed83440.zip
[amcnetworks] Fix extractor (#179)
* Prefer use of manifest based on `releasePid` since the one based on `videoPid` may have Fairplay * Additional thumbnail images were added * Don't add `season_number` and `series` to `title` * `series` is now set to `None` rather than "_" when empty * fix bug with age limit Authored by: 2ShedsJackson
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r--yt_dlp/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py
index 27d649565..eb194589e 100644
--- a/yt_dlp/utils.py
+++ b/yt_dlp/utils.py
@@ -4106,6 +4106,7 @@ def parse_age_limit(s):
m = re.match(r'^(?P<age>\d{1,2})\+?$', s)
if m:
return int(m.group('age'))
+ s = s.upper()
if s in US_RATINGS:
return US_RATINGS[s]
m = re.match(r'^TV[_-]?(%s)$' % '|'.join(k[3:] for k in TV_PARENTAL_GUIDELINES), s)