1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-16 16:13:35 +01:00

[ie/SVTPage] Fix extractor (#11010)

Authored by: diman8
This commit is contained in:
diman8 2024-09-26 18:57:00 +02:00 committed by GitHub
parent ad0b857f45
commit 5a8a05aebb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -472,7 +472,7 @@ def _real_extract(self, url):
title = self._og_search_title(webpage)
urql_state = self._search_json(
r'window\.svt\.nyh\.urqlState\s*=', webpage, 'json data', display_id)
r'window\.svt\.(?:nyh\.)?urqlState\s*=', webpage, 'json data', display_id)
data = traverse_obj(urql_state, (..., 'data', {str}, {json.loads}), get_all=False) or {}