aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Heine né Lang <mail@adrianheine.de>2021-02-06 20:46:05 +0100
committerGitHub <noreply@github.com>2021-02-07 02:46:05 +0700
commit240585470539d31d9c3785a67861491fa3696451 (patch)
treec4c7fd176a25128020c716ab00c1a7fd81cac698
parent0cf09c2b4168cb99800836d8c1ff0d6d8b16fb6e (diff)
[urplay] Fix extraction (closes #28073) (#28074)
-rw-r--r--youtube_dl/extractor/urplay.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/urplay.py b/youtube_dl/extractor/urplay.py
index 10b817760..5452c7ca1 100644
--- a/youtube_dl/extractor/urplay.py
+++ b/youtube_dl/extractor/urplay.py
@@ -42,8 +42,8 @@ class URPlayIE(InfoExtractor):
url = url.replace('skola.se/Produkter', 'play.se/program')
webpage = self._download_webpage(url, video_id)
urplayer_data = self._parse_json(self._html_search_regex(
- r'data-react-class="components/Player/Player"[^>]+data-react-props="({.+?})"',
- webpage, 'urplayer data'), video_id)['currentProduct']
+ r'data-react-class="routes/Product/components/ProgramContainer/ProgramContainer"[^>]+data-react-props="({.+?})"',
+ webpage, 'urplayer data'), video_id)['accessibleEpisodes'][0]
episode = urplayer_data['title']
raw_streaming_info = urplayer_data['streamingInfo']['raw']
host = self._download_json(