Further fixes/changes to loading 'types' for config + manifest edits

This commit is contained in:
Patrick Robertson
2025-01-27 11:48:04 +01:00
parent 14e2479599
commit 7fd95866a1
29 changed files with 39 additions and 143 deletions

View File

@@ -1 +1 @@
from .local import LocalStorage
from .local_storage import LocalStorage

View File

@@ -11,9 +11,10 @@ from auto_archiver.base_processors import Storage
class LocalStorage(Storage):
name = "local_storage"
def __init__(self, config: dict) -> None:
super().__init__(config)
os.makedirs(self.save_to, exist_ok=True)
def __init__(self) -> None:
super().__init__()
# TODO: fix up passing config values to 'steps'
# os.makedirs(self.save_to, exist_ok=True)
def get_cdn_url(self, media: Media) -> str:
# TODO: is this viable with Storage.configs on path/filename?