commit: 240585470539d31d9c3785a67861491fa3696451
parent 0cf09c2b4168cb99800836d8c1ff0d6d8b16fb6e
Author: Adrian Heine né Lang <mail@adrianheine.de>
Date: Sat, 6 Feb 2021 20:46:05 +0100
[urplay] Fix extraction (closes #28073) (#28074)
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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(