Browse Source

updated from upstream | 20/01/2020 at 17:30

master
Jesús 1 month ago
parent
commit
989a1d3b7e
Signed by: Jesús <heckyel@hyperbola.info> GPG Key ID: F6EE7BC59A315766
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      youtube_dl/extractor/ard.py

+ 3
- 2
youtube_dl/extractor/ard.py 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,

Loading…
Cancel
Save