mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-13 18:51:03 +01:00
parent
cccfab6412
commit
d42b2d2985
@ -71,12 +71,8 @@ def _real_extract(self, url):
|
||||
mobj = re.match(self._VALID_URL, url)
|
||||
video_id = mobj.group('id')
|
||||
|
||||
webpage = self._download_webpage(url, video_id)
|
||||
data_json = self._search_regex(
|
||||
r'(?s)window\["(?:tapiVideoData|vubeOriginalVideoData)"\]\s*=\s*(\{.*?\n});\n',
|
||||
webpage, 'video data'
|
||||
)
|
||||
data = json.loads(data_json)
|
||||
json_url = 'http://vube.com/t-api/v1/video/%s?country=US&limit=120®ion=US' % video_id
|
||||
data = self._download_json(json_url, video_id)
|
||||
video = (
|
||||
data.get('video') or
|
||||
data)
|
||||
|
Loading…
Reference in New Issue
Block a user