]> jfr.im git - yt-dlp.git/commitdiff
[tenplay] Add MA15+ age limit (#606)
authorpukkandan <redacted>
Mon, 2 Aug 2021 02:21:48 +0000 (07:51 +0530)
committerpukkandan <redacted>
Mon, 2 Aug 2021 02:22:11 +0000 (07:52 +0530)
Authored by: pento

yt_dlp/extractor/tenplay.py

index d34a6bcdf9feb205aca60a62d077f6310058e2af..c810cfd0d5192c784353ec67b4d720c759cbc3a5 100644 (file)
@@ -41,6 +41,7 @@ class TenPlayIE(InfoExtractor):
         'PG': 15,
         'M': 15,
         'MA': 15,
+        'MA15+': 15,
         'R': 18,
         'X': 18
     }
@@ -79,7 +80,7 @@ def _real_extract(self, url):
             'id': data.get('altId') or content_id,
             'title': data.get('title'),
             'description': data.get('description'),
-            'age_limit': self._AUS_AGES[data.get('classification')],
+            'age_limit': self._AUS_AGES.get(data.get('classification')),
             'series': data.get('showName'),
             'season': data.get('showContentSeason'),
             'timestamp': data.get('published'),