mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-11 20:58:29 +03:00
Merge branch 'load_modules' into more_mainifests
# Conflicts: # src/auto_archiver/core/orchestrator.py
This commit is contained in:
@@ -0,0 +1 @@
|
||||
from .generic_extractor import GenericExtractor
|
||||
@@ -2,11 +2,10 @@
|
||||
'name': 'Generic Extractor',
|
||||
'version': '0.1.0',
|
||||
'author': 'Bellingcat',
|
||||
'type': ['extractor'],
|
||||
'entry_point': 'generic_extractor:GenericExtractor',
|
||||
'type': ['extractor', 'feeder', 'enricher'],
|
||||
'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