mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-16 13:23:20 +00:00
fix #1
This commit is contained in:
parent
96c8ce3b4f
commit
6e3695b0e4
|
@ -88,7 +88,7 @@ def _real_extract(self, url):
|
|||
video_id = self._match_id(url)
|
||||
webpage = self._download_webpage(url, video_id)
|
||||
data_vid = self._html_search_regex(r'(\"vtv\.mediacdn\.vn/.+\.mp4\")', webpage, 'data-vid', group=1)
|
||||
parsed = urlparse(f'https://{data_vid[1:][:-1]}') # type: ignore
|
||||
parsed = urlparse(f'https://{data_vid[1:][:-1]}') # type: ignore
|
||||
m3u8_url = f'https://cdn-videos.vtv.vn/{parsed.path}/master.m3u8'
|
||||
formats = self._extract_m3u8_formats(m3u8_url, video_id, 'mp4')
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue