diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-03-05 22:57:19 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-03-05 22:57:19 +0700 |
commit | 64f34528df76b0e9042fedb6ab96b230bc7a41e9 (patch) | |
tree | db484490d957b2284e3f39f64e08d17802dba03c | |
parent | 26ad6bcdfc08bf94573c833c51d7db1316cfad58 (diff) |
[vrtnu] Use redirect URL for building video JSON URL (closes #15767, closes #15769)
-rw-r--r-- | youtube_dl/extractor/canvas.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/canvas.py b/youtube_dl/extractor/canvas.py index 3faa76076..8ac62c1a6 100644 --- 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) - webpage = self._download_webpage(url, display_id) + webpage, urlh = self._download_webpage_handle(url, display_id) 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 - clean_url = url.split('?')[0].split('#')[0].strip('/') + clean_url = urlh.geturl().split('?')[0].split('#')[0].strip('/') securevideo_url = clean_url + '.mssecurevideo.json' try: |