Update manifests and modules

This commit is contained in:
erinhmclark
2025-01-24 12:58:16 +00:00
parent ba4b330881
commit aa7ca93a43
95 changed files with 172 additions and 115 deletions

View File

@@ -0,0 +1 @@
from .local import LocalStorage

View File

@@ -1,4 +1,4 @@
m = {
{
"name": "Local Storage",
"type": ["storage"],
"requires_setup": False,
@@ -9,10 +9,12 @@ m = {
"path_generator": {
"default": "url",
"help": "how to store the file in terms of directory structure: 'flat' sets to root; 'url' creates a directory based on the provided URL; 'random' creates a random directory.",
"choices": ["flat", "url", "random"],
},
"filename_generator": {
"default": "random",
"help": "how to name stored files: 'random' creates a random string; 'static' uses a replicable strategy such as a hash.",
"choices": ["random", "static"],
},
"save_to": {"default": "./archived", "help": "folder where to save archived content"},
"save_absolute": {"default": False, "help": "whether the path to the stored file is absolute or relative in the output result inc. formatters (WARN: leaks the file structure)"},

View File

@@ -5,7 +5,7 @@ import os
from loguru import logger
from auto_archiver.core import Media
from auto_archiver.base_modules import Storage
from auto_archiver.base_processors import Storage
class LocalStorage(Storage):