mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-08-21 11:36:05 +03:00
[ie/SVTPlay] fix extractor
Fixes https://github.com/yt-dlp/yt-dlp/issues/13312 Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
This commit is contained in:
@@ -287,6 +287,10 @@ class SVTPlayIE(SVTPlayBaseIE):
|
||||
svt_id = traverse_obj(nextjs_data, (
|
||||
'props', 'urqlState', ..., 'data', {json.loads}, 'detailsPageByPath',
|
||||
'video', 'svtId', {str}), get_all=False)
|
||||
if not svt_id:
|
||||
svt_id = traverse_obj(nextjs_data, (
|
||||
'props', 'urqlState', ..., 'data', {json.loads}, 'detailsPageByPath',
|
||||
'modules', ..., 'details', 'smartStart', 'item', 'videos', ..., 'svtId', {str}), get_all=False)
|
||||
|
||||
if not svt_id:
|
||||
svt_id = self._search_regex(
|
||||
|
||||
Reference in New Issue
Block a user