mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 02:42:30 +00:00
[youtube] Fix inconsistent webpage_url
(closes #119)
This commit is contained in:
parent
9bd2020476
commit
b3d1242534
@ -1452,8 +1452,10 @@ def _real_extract(self, url):
|
|||||||
url, smuggled_data = unsmuggle_url(url, {})
|
url, smuggled_data = unsmuggle_url(url, {})
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
base_url = self.http_scheme() + '//www.youtube.com/'
|
base_url = self.http_scheme() + '//www.youtube.com/'
|
||||||
webpage_url = base_url + 'watch?v=' + video_id + '&has_verified=1&bpctr=9999999999'
|
webpage_url = base_url + 'watch?v=' + video_id
|
||||||
webpage = self._download_webpage(webpage_url, video_id, fatal=False)
|
webpage = self._download_webpage(
|
||||||
|
webpage_url + '&has_verified=1&bpctr=9999999999',
|
||||||
|
video_id, fatal=False)
|
||||||
|
|
||||||
player_response = None
|
player_response = None
|
||||||
if webpage:
|
if webpage:
|
||||||
|
Loading…
Reference in New Issue
Block a user