diff options
author | Remita Amine <remitamine@gmail.com> | 2020-01-19 18:24:00 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2020-01-19 18:28:24 +0100 |
commit | f4a18db748d710616d6886d2283a1661b1993783 (patch) | |
tree | 09e6287975f9893ea639d726375f612dd6684b92 /youtube_dl | |
parent | fd032450f09c18a971c2a7d4b2e251c8444d69b4 (diff) |
[ard] add a missing condition
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/ard.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/ard.py b/youtube_dl/extractor/ard.py index 09d3ab4f9..2f47e21c3 100644 --- a/youtube_dl/extractor/ard.py +++ b/youtube_dl/extractor/ard.py @@ -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, |