mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-08-20 19:16:06 +03:00
[ie/SVTPlay] simplify traverse_obj call
As found by: dirkf Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
This commit is contained in:
@@ -266,8 +266,7 @@ class SVTPlayIE(SVTPlayBaseIE):
|
||||
'props', 'urqlState', ..., 'data', {json.loads},
|
||||
'detailsPageByPath', {dict}, any, {require('video data')}))
|
||||
details = traverse_obj(data, (
|
||||
'modules', lambda _, v: v['details']['smartStart']['item']['videos'],
|
||||
'details', {dict}, any))
|
||||
'modules', lambda _, v: v['details']['smartStart']['item']['videos'], 'details', any))
|
||||
svt_id = traverse_obj(details, (
|
||||
'smartStart', 'item', 'videos',
|
||||
# There can be 'AudioDescribed' and 'SignInterpreted' variants; try 'Default' or else get first
|
||||
|
||||
Reference in New Issue
Block a user