mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-07 17:33:41 +00:00
Update svt.py
This commit is contained in:
parent
2432970715
commit
f56a3477e4
@ -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 {}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user