]> asedeno.scripts.mit.edu Git - youtube-dl.git/commitdiff
[urplay] Fix extraction (closes #28073) (#28074)
authorAdrian Heine né Lang <mail@adrianheine.de>
Sat, 6 Feb 2021 19:46:05 +0000 (20:46 +0100)
committerGitHub <noreply@github.com>
Sat, 6 Feb 2021 19:46:05 +0000 (02:46 +0700)
youtube_dl/extractor/urplay.py

index 10b817760c14db63a78448e0b1e41cb0648a99e3..5452c7ca166e5c6efc887dbb471da4d38b08c3e5 100644 (file)
@@ -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(