mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-28 01:18:30 +00:00
fix code check issues
This commit is contained in:
parent
855d7b238d
commit
138ef94d48
@ -1,5 +1,4 @@
|
|||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import determine_ext
|
|
||||||
|
|
||||||
|
|
||||||
class FilmArchivIE(InfoExtractor):
|
class FilmArchivIE(InfoExtractor):
|
||||||
@ -14,12 +13,12 @@ class FilmArchivIE(InfoExtractor):
|
|||||||
'title': 'Der Wurstelprater zur Kaiserzeit',
|
'title': 'Der Wurstelprater zur Kaiserzeit',
|
||||||
'description': 'md5:9843f92df5cc9a4975cee7aabcf6e3b2',
|
'description': 'md5:9843f92df5cc9a4975cee7aabcf6e3b2',
|
||||||
'thumbnail': 'https://img.filmarchiv.at/unsafe/1024x1024/videostatic/f_0305/p7xKrXUPBwoNE9x6mh_v1/poster.jpg',
|
'thumbnail': 'https://img.filmarchiv.at/unsafe/1024x1024/videostatic/f_0305/p7xKrXUPBwoNE9x6mh_v1/poster.jpg',
|
||||||
}
|
},
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
id = self._match_id(url)
|
media_id = self._match_id(url)
|
||||||
webpage = self._download_webpage(url, id)
|
webpage = self._download_webpage(url, media_id)
|
||||||
|
|
||||||
title = self._html_search_regex(
|
title = self._html_search_regex(
|
||||||
r'<title-div [^>]+>\s*(.+?)\s*</title-div>',
|
r'<title-div [^>]+>\s*(.+?)\s*</title-div>',
|
||||||
@ -34,10 +33,10 @@ def _real_extract(self, url):
|
|||||||
webpage, 'bucket, video_id, version', group=('bucket', 'video_id', 'version'))
|
webpage, 'bucket, video_id, version', group=('bucket', 'video_id', 'version'))
|
||||||
|
|
||||||
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, id, fatal=False)
|
formats, subtitles = self._extract_m3u8_formats_and_subtitles(playlist_url, media_id, fatal=False)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': id,
|
'id': media_id,
|
||||||
'title': title,
|
'title': title,
|
||||||
'description': description,
|
'description': description,
|
||||||
'thumbnail': f'https://img.filmarchiv.at/unsafe/1024x1024/videostatic/{bucket}/{video_id}/poster.jpg',
|
'thumbnail': f'https://img.filmarchiv.at/unsafe/1024x1024/videostatic/{bucket}/{video_id}/poster.jpg',
|
||||||
|
Loading…
Reference in New Issue
Block a user