1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-10-02 23:47:08 +02:00
This commit is contained in:
DinhHuy2010 2024-06-13 17:16:26 +07:00
parent 96c8ce3b4f
commit 6e3695b0e4

View File

@ -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 {