Skip to content

Commit

Permalink
[urplay] Fix extraction (closes #28073) (#28074)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianheine authored Feb 6, 2021
1 parent 0cf09c2 commit 2405854
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtube_dl/extractor/urplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def _real_extract(self, url):
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(
Expand Down

0 comments on commit 2405854

Please sign in to comment.