projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3765284
)
[nrl] fix extraction
author
Remita Amine
<remitamine@gmail.com>
Sat, 30 Nov 2019 22:50:28 +0000
(23:50 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Sat, 30 Nov 2019 22:50:28 +0000
(23:50 +0100)
youtube_dl/extractor/nrl.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/nrl.py
b/youtube_dl/extractor/nrl.py
index 798b91e048c2ecad4754ab6538e00e2b47bd1e60..22a2df8d3fe4e3038879997a72c3df850308db6b 100644
(file)
--- a/
youtube_dl/extractor/nrl.py
+++ b/
youtube_dl/extractor/nrl.py
@@
-23,8
+23,8
@@
class NRLTVIE(InfoExtractor):
def _real_extract(self, url):
display_id = self._match_id(url)
webpage = self._download_webpage(url, display_id)
- q_data = self._parse_json(self._search_regex(
- r
"(?s)q-data='({.+?})'"
, webpage, 'player data'), display_id)
+ q_data = self._parse_json(self._
html_
search_regex(
+ r
'(?s)q-data="({.+?})"'
, webpage, 'player data'), display_id)
ooyala_id = q_data['videoId']
return self.url_result(
'ooyala:' + ooyala_id, 'Ooyala', ooyala_id, q_data.get('title'))