mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-14 23:32:33 +00:00
This commit is contained in:
parent
26ad6bcdfc
commit
64f34528df
1 changed files with 2 additions and 2 deletions
|
@ -246,7 +246,7 @@ class VrtNUIE(GigyaBaseIE):
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
display_id = self._match_id(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(
|
title = self._html_search_regex(
|
||||||
r'(?ms)<h1 class="content__heading">(.+?)</h1>',
|
r'(?ms)<h1 class="content__heading">(.+?)</h1>',
|
||||||
|
@ -276,7 +276,7 @@ class VrtNUIE(GigyaBaseIE):
|
||||||
webpage, 'release_date', default=None))
|
webpage, 'release_date', default=None))
|
||||||
|
|
||||||
# If there's a ? or a # in the URL, remove them and everything after
|
# 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'
|
securevideo_url = clean_url + '.mssecurevideo.json'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue