mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-12 05:08:28 +03:00
Get module loading working properly
This commit is contained in:
@@ -0,0 +1 @@
|
||||
from .generic_extractor import GenericExtractor
|
||||
@@ -3,10 +3,9 @@
|
||||
'version': '0.1.0',
|
||||
'author': 'Bellingcat',
|
||||
'type': ['extractor'],
|
||||
'entry_point': 'generic_extractor:GenericExtractor',
|
||||
'entry_point': 'GenericExtractor', # this class should be present in the __init__.py
|
||||
'requires_setup': False,
|
||||
'depends': ['core'],
|
||||
'external_dependencies': {
|
||||
'dependencies': {
|
||||
'python': ['yt_dlp', 'requests', 'loguru', 'slugify'],
|
||||
},
|
||||
'description': """
|
||||
|
||||
@@ -12,17 +12,6 @@ class GenericExtractor(Archiver):
|
||||
name = "youtubedl_archiver" #left as is for backwards compat
|
||||
_dropins = {}
|
||||
|
||||
def __init__(self, config: dict) -> None:
|
||||
super().__init__(config)
|
||||
self.subtitles = bool(self.subtitles)
|
||||
self.comments = bool(self.comments)
|
||||
self.livestreams = bool(self.livestreams)
|
||||
self.live_from_start = bool(self.live_from_start)
|
||||
self.end_means_success = bool(self.end_means_success)
|
||||
self.allow_playlist = bool(self.allow_playlist)
|
||||
self.max_downloads = self.max_downloads
|
||||
|
||||
|
||||
def suitable_extractors(self, url: str) -> list[str]:
|
||||
"""
|
||||
Returns a list of valid extractors for the given URL"""
|
||||
|
||||
Reference in New Issue
Block a user