1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-12-18 12:37:54 +01:00

[ard] add a missing condition

This commit is contained in:
Remita Amine 2020-01-19 18:24:00 +01:00
parent fd032450f0
commit f4a18db748

View File

@ -392,8 +392,9 @@ class ARDBetaMediathekIE(ARDMediathekBaseIE):
maturity_content_rating = player_page.get('maturityContentRating') maturity_content_rating = player_page.get('maturityContentRating')
if maturity_content_rating: if maturity_content_rating:
age_limit = int_or_none(maturity_content_rating.lstrip('FSK')) age_limit = int_or_none(maturity_content_rating.lstrip('FSK'))
if not age_limit: if not age_limit and description:
age_limit = int_or_none(self._search_regex(r'\(FSK\s*(\d+)\)\s*$', description, 'age limit', default=None)) age_limit = int_or_none(self._search_regex(
r'\(FSK\s*(\d+)\)\s*$', description, 'age limit', default=None))
info.update({ info.update({
'age_limit': age_limit, 'age_limit': age_limit,
'display_id': display_id, 'display_id': display_id,