1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-05-31 17:27:48 +00:00

[ie/SVTPage] Fix extractor (#12957)

Closes #13142
Authored by: diman8
This commit is contained in:
diman8 2025-05-10 10:53:59 +02:00 committed by GitHub
parent b26bc32579
commit ea8498ed53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -471,8 +471,7 @@ class SVTPageIE(SVTBaseIE):
webpage = self._download_webpage(url, display_id)
title = self._og_search_title(webpage)
urql_state = self._search_json(
r'window\.svt\.(?:nyh\.)?urqlState\s*=', webpage, 'json data', display_id)
urql_state = self._search_json(r'urqlState\s*[=:]', webpage, 'json data', display_id)
data = traverse_obj(urql_state, (..., 'data', {str}, {json.loads}), get_all=False) or {}