[extractor/sbs] Python 3.7 compat

Closes #7410
pull/7434/head
pukkandan 1 year ago
parent 8a8af356e3
commit f393bbe724
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

@ -139,8 +139,8 @@ class SBSIE(InfoExtractor):
'release_year': ('releaseYear', {int_or_none}), 'release_year': ('releaseYear', {int_or_none}),
'duration': ('duration', ({float_or_none}, {parse_duration})), 'duration': ('duration', ({float_or_none}, {parse_duration})),
'is_live': ('liveStream', {bool}), 'is_live': ('liveStream', {bool}),
'age_limit': ( 'age_limit': (('classificationID', 'contentRating'), {str.upper}, {
('classificationID', 'contentRating'), {str.upper}, {self._AUS_TV_PARENTAL_GUIDELINES.get}), lambda x: self._AUS_TV_PARENTAL_GUIDELINES.get(x)}), # dict.get is unhashable in py3.7
}, get_all=False), }, get_all=False),
**traverse_obj(media, { **traverse_obj(media, {
'categories': (('genres', ...), ('taxonomy', ('genre', 'subgenre'), 'name'), {str}), 'categories': (('genres', ...), ('taxonomy', ('genre', 'subgenre'), 'name'), {str}),

Loading…
Cancel
Save