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

Update yt_dlp/extractor/filmarchiv.py

Co-authored-by: N/Ame <173015200+grqz@users.noreply.github.com>
This commit is contained in:
delta 2025-06-18 11:00:17 +02:00 committed by GitHub
parent 436d9c4ebc
commit b18f2f0b77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,9 +28,9 @@ def _real_extract(self, url):
r'<div class="(?:.+?)?border-base-content[^"]*">\s*<div class="(?:.+?)?prose[^"]*">\s*<p>\s*(.+?)\s*</p>', r'<div class="(?:.+?)?border-base-content[^"]*">\s*<div class="(?:.+?)?prose[^"]*">\s*<p>\s*(.+?)\s*</p>',
webpage, 'description') webpage, 'description')
bucket, video_id, version = self._html_search_regex( og_img = self._html_search_meta('og:image', webpage, 'image URL', fatal=True)
r'<meta property="og:image" content="https://.+?videostatic/(?P<bucket>[^/]+)/(?P<video_id>[^_]+)_(?P<version>[^/]+)/poster.jpg[^"]+">', prefix = self._search_regex(
webpage, 'bucket, video_id, version', group=('bucket', 'video_id', 'version')) r'/videostatic/([^/]+/[^_]+_[^/]+)/poster.jpg', og_img, 'prefix')
playlist_url = f'https://cdn.filmarchiv.at/{bucket}/{video_id}_{version}_sv1/playlist.m3u8' playlist_url = f'https://cdn.filmarchiv.at/{bucket}/{video_id}_{version}_sv1/playlist.m3u8'
formats, subtitles = self._extract_m3u8_formats_and_subtitles(playlist_url, media_id, fatal=False) formats, subtitles = self._extract_m3u8_formats_and_subtitles(playlist_url, media_id, fatal=False)