mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-16 21:15:40 +00:00
RBMARadioIE: fix the extraction of the JSON data
This commit is contained in:
parent
587c68b2cd
commit
038a3a1a61
1 changed files with 2 additions and 2 deletions
|
@ -3488,8 +3488,8 @@ class RBMARadioIE(InfoExtractor):
|
||||||
|
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
json_data = self._search_regex(r'<script>window.gon = {.*?};gon\.show=(.+?);</script>',
|
json_data = self._search_regex(r'window\.gon.*?gon\.show=(.+?);$',
|
||||||
webpage, u'json data')
|
webpage, u'json data', flags=re.MULTILINE)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
data = json.loads(json_data)
|
data = json.loads(json_data)
|
||||||
|
|
Loading…
Reference in a new issue