1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-21 07:28:52 +00:00
This commit is contained in:
c-basalt
2024-12-30 17:09:47 -05:00
parent 96c6cdeec4
commit fb474064ee
4 changed files with 83 additions and 84 deletions

View File

@@ -197,6 +197,8 @@ class JSI(abc.ABC):
_BASE_PREFERENCE: int = 0
def __init__(self, downloader: YoutubeDL, timeout: float | int, features: set[str], user_agent=None):
if not self._SUPPORT_FEATURES.issuperset(features):
raise ExtractorError(f'{self.JSI_NAME} does not support all required features: {features}')
self._downloader = downloader
self.timeout = timeout
self.features = features