aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/funimation.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-03-31 13:25:50 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-03-31 13:33:28 +0530
commite6f868a63c15f576152733a1508f474b5e5bd1ef (patch)
treec3ec5c413f3a137ade860345e076197eaaf93834 /yt_dlp/extractor/funimation.py
parentc4f60dd7cdbf5282a8d1a8fa8dd4f6fd60acc034 (diff)
downloadhypervideo-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.py2
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',