projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
26ad6bc
)
[vrtnu] Use redirect URL for building video JSON URL (closes #15767, closes #15769)
author
Sergey M․
<dstftw@gmail.com>
Mon, 5 Mar 2018 15:57:19 +0000
(22:57 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 5 Mar 2018 15:57:19 +0000
(22:57 +0700)
youtube_dl/extractor/canvas.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/canvas.py
b/youtube_dl/extractor/canvas.py
index 3faa76076318813d8b16f005f9a87ce5df986034..8ac62c1a680ccb0ab8a8c038bf0c7270c510d3e6 100644
(file)
--- a/
youtube_dl/extractor/canvas.py
+++ b/
youtube_dl/extractor/canvas.py
@@
-246,7
+246,7
@@
class VrtNUIE(GigyaBaseIE):
def _real_extract(self, url):
display_id = self._match_id(url)
def _real_extract(self, url):
display_id = self._match_id(url)
- webpage
= self._download_webpag
e(url, display_id)
+ webpage
, urlh = self._download_webpage_handl
e(url, display_id)
title = self._html_search_regex(
r'(?ms)<h1 class="content__heading">(.+?)</h1>',
title = self._html_search_regex(
r'(?ms)<h1 class="content__heading">(.+?)</h1>',
@@
-276,7
+276,7
@@
class VrtNUIE(GigyaBaseIE):
webpage, 'release_date', default=None))
# If there's a ? or a # in the URL, remove them and everything after
webpage, 'release_date', default=None))
# If there's a ? or a # in the URL, remove them and everything after
- clean_url = url.split('?')[0].split('#')[0].strip('/')
+ clean_url = url
h.geturl()
.split('?')[0].split('#')[0].strip('/')
securevideo_url = clean_url + '.mssecurevideo.json'
try:
securevideo_url = clean_url + '.mssecurevideo.json'
try: