Compare commits

..

No commits in common. "bbb576f5e839a78e72d1bdf80d6607acbc5d091c" and "243297071546a5e13bbcacd7ce2acb5da70f76ea" have entirely different histories.

View File

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