refactor media module, change --env to --root

This commit moves the media scanner out of the db module and into
a new module, media. We also change the --env parameter to --root,
which takes a path to a directory where the default configuration
and the transcoded media cache will live.
This commit is contained in:
evilchili
2022-12-31 12:43:48 -08:00
parent 3bb2f83464
commit 17a6dcb4d2
7 changed files with 38 additions and 9 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ def encode(args: List, uri: str) -> str:
Encode a request and cryptographically sign it. This serves two purposes:
First, it enables the handler that receives the request to verify that the
request was meant for it, preventing various routing and relay-induced bugs.
Second, it ensures the request wasn't corrutped or tampered with during
Second, it ensures the request wasn't corrupted or tampered with during
transmission.
Args: