1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-05-27 18:30:38 +08:00

Merge pull request #241 from ytdl-org/master

[pull] master from ytdl-org:master
This commit is contained in:
pull[bot]
2020-01-19 17:40:57 +00:00
committed by GitHub
Unverified
+3 -2
View File
@@ -392,8 +392,9 @@ class ARDBetaMediathekIE(ARDMediathekBaseIE):
maturity_content_rating = player_page.get('maturityContentRating')
if maturity_content_rating:
age_limit = int_or_none(maturity_content_rating.lstrip('FSK'))
if not age_limit:
age_limit = int_or_none(self._search_regex(r'\(FSK\s*(\d+)\)\s*$', description, 'age limit', default=None))
if not age_limit and description:
age_limit = int_or_none(self._search_regex(
r'\(FSK\s*(\d+)\)\s*$', description, 'age limit', default=None))
info.update({
'age_limit': age_limit,
'display_id': display_id,