diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-06-26 16:14:20 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-06-26 16:14:20 +0530 |
commit | f393bbe724b1fc6c7f754a5da507e807b2b40ad2 (patch) | |
tree | 2112e7e64a973d9c33c34b11b32803afcb88e46c | |
parent | 8a8af356e3bba98a7f7d333aff0777d5d92130c8 (diff) | |
download | hypervideo-pre-f393bbe724b1fc6c7f754a5da507e807b2b40ad2.tar.lz hypervideo-pre-f393bbe724b1fc6c7f754a5da507e807b2b40ad2.tar.xz hypervideo-pre-f393bbe724b1fc6c7f754a5da507e807b2b40ad2.zip |
[extractor/sbs] Python 3.7 compat
Closes #7410
-rw-r--r-- | yt_dlp/extractor/sbs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/sbs.py b/yt_dlp/extractor/sbs.py index ac0b6de20..119106e8e 100644 --- a/yt_dlp/extractor/sbs.py +++ b/yt_dlp/extractor/sbs.py @@ -139,8 +139,8 @@ class SBSIE(InfoExtractor): 'release_year': ('releaseYear', {int_or_none}), 'duration': ('duration', ({float_or_none}, {parse_duration})), 'is_live': ('liveStream', {bool}), - 'age_limit': ( - ('classificationID', 'contentRating'), {str.upper}, {self._AUS_TV_PARENTAL_GUIDELINES.get}), + 'age_limit': (('classificationID', 'contentRating'), {str.upper}, { + lambda x: self._AUS_TV_PARENTAL_GUIDELINES.get(x)}), # dict.get is unhashable in py3.7 }, get_all=False), **traverse_obj(media, { 'categories': (('genres', ...), ('taxonomy', ('genre', 'subgenre'), 'name'), {str}), |