mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-01-08 20:13:14 -08:00
bfb45c180a
Remove version checks and update logic Remove extraneous constants: SOURCE_ROOT, SYS_ARGV, APP_FILENAME, CONFIG_MOVIE_FILE, MY_APP, CONFIG_TV_FILE, GIT_* Remove nzb2media.utils.processes Update requirements Flatten project structure Keep settings close to code Refactor NZBget, torrent configs, torrents, transcoder, tools, constants and forks Refactor `nzbToMedia.main` to `nzb2media.app.main` Fix flake/lint issues
17 lines
658 B
Python
17 lines
658 B
Python
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
MEDUSA_KEYS = ('proc_dir', 'failed', 'process_method', 'force', 'delete_on', 'ignore_subs')
|
|
MEDUSA_API_KEYS = ('path', 'failed', 'process_method', 'force_replace', 'return_data', 'type', 'delete_files', 'is_priority')
|
|
MEDUSA_API_V2_KEYS = ('proc_dir', 'resource', 'failed', 'process_method', 'force', 'type', 'delete_on', 'is_priority')
|
|
|
|
CONFIG: dict[str, dict[str, Any]] = {
|
|
'Medusa': {key: None for key in MEDUSA_KEYS},
|
|
'Medusa-api': {
|
|
**{key: None for key in MEDUSA_API_KEYS},
|
|
'cmd': 'postprocess',
|
|
},
|
|
'Medusa-apiv2': {key: None for key in MEDUSA_API_V2_KEYS},
|
|
}
|