1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-28 17:38:35 +00:00

Update yt_dlp/extractor/pandavideo.py

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
Iuri Campos 2025-06-01 18:13:19 +01:00 committed by GitHub
parent 8cd0f510ee
commit 24a6366f5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,11 +65,12 @@ class PandaVideoIE(InfoExtractor):
def _real_extract(self, url: str) -> dict: def _real_extract(self, url: str) -> dict:
server, video_id = self._match_valid_url(url).groups() server, video_id = self._match_valid_url(url).groups()
manifest_url = f'https://{server}.tv.pandavideo.com.br/{video_id}/playlist.m3u8'
webpage = self._download_webpage(url, video_id) webpage = self._download_webpage(url, video_id)
return { return {
'id': video_id, 'id': video_id,
'url': url, 'formats': self._extract_m3u8_formats(
f'https://{server}.tv.pandavideo.com.br/{video_id}/playlist.m3u8', video_id, 'mp4', m3u8_id='hls'),
'title': self._html_search_regex(r'<title>([^<]+)</title>', webpage, 'title', default=f'pandavideo_{video_id}', fatal=False), 'title': self._html_search_regex(r'<title>([^<]+)</title>', webpage, 'title', default=f'pandavideo_{video_id}', fatal=False),
'description': self._html_search_meta('description', webpage, 'description', default=None, fatal=False), 'description': self._html_search_meta('description', webpage, 'description', default=None, fatal=False),
'formats': self._extract_m3u8_formats(manifest_url, video_id), 'formats': self._extract_m3u8_formats(manifest_url, video_id),