diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-03-31 13:25:50 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-03-31 13:33:28 +0530 |
commit | e6f868a63c15f576152733a1508f474b5e5bd1ef (patch) | |
tree | c3ec5c413f3a137ade860345e076197eaaf93834 /yt_dlp/extractor/funimation.py | |
parent | c4f60dd7cdbf5282a8d1a8fa8dd4f6fd60acc034 (diff) | |
download | hypervideo-pre-e6f868a63c15f576152733a1508f474b5e5bd1ef.tar.lz hypervideo-pre-e6f868a63c15f576152733a1508f474b5e5bd1ef.tar.xz hypervideo-pre-e6f868a63c15f576152733a1508f474b5e5bd1ef.zip |
[utils] `traverse_obj`: Allow filtering by value
Diffstat (limited to 'yt_dlp/extractor/funimation.py')
-rw-r--r-- | yt_dlp/extractor/funimation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/funimation.py b/yt_dlp/extractor/funimation.py index 36a9c4772..6aa9bc9ce 100644 --- a/yt_dlp/extractor/funimation.py +++ b/yt_dlp/extractor/funimation.py @@ -333,7 +333,7 @@ class FunimationShowIE(FunimationBaseIE): 'https://prod-api-funimationnow.dadcdigital.com/api/funimation/episodes/?limit=99999&title_id=%s' % show_info.get('id'), display_id) - vod_items = traverse_obj(items_info, ('items', ..., re.compile('(?i)mostRecent[AS]vod').match, 'item')) + vod_items = traverse_obj(items_info, ('items', ..., lambda k, _: re.match(r'(?i)mostRecent[AS]vod', k), 'item')) return { '_type': 'playlist', |