From 89eaee2ff83de8bcd44472d39e89110fec8acf08 Mon Sep 17 00:00:00 2001 From: Kyle Gonsalves Date: Fri, 19 Apr 2024 10:04:05 -0700 Subject: [PATCH] one more tranverse --- yt_dlp/extractor/bbc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/bbc.py b/yt_dlp/extractor/bbc.py index 1bc7a69b7..be36bbb63 100644 --- a/yt_dlp/extractor/bbc.py +++ b/yt_dlp/extractor/bbc.py @@ -1281,7 +1281,8 @@ class BBCIE(BBCCoUkIE): # XXX: Do not subclass from concrete IE 'model', 'blocks', lambda _, v: v['type'] == 'mediaMetadata', 'model'), get_all=False) if model: - item_id = try_get(model, lambda x: x['versions'][0]['versionId']) + item_id = traverse_obj(model, ( + 'versions', 0, 'versionId'), get_all=False) formats, subtitles = self._download_media_selector(item_id) synopses = model.get('synopses') or {} entries.append({