mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-13 13:48:28 +03:00
Refactoring for new config setup
This commit is contained in:
@@ -5,17 +5,12 @@ import os
|
||||
from loguru import logger
|
||||
|
||||
from auto_archiver.core import Media
|
||||
from auto_archiver.base_processors import Storage
|
||||
from auto_archiver.core import Storage
|
||||
|
||||
|
||||
class LocalStorage(Storage):
|
||||
name = "local_storage"
|
||||
|
||||
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?
|
||||
dest = os.path.join(self.save_to, media.key)
|
||||
|
||||
Reference in New Issue
Block a user