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
@@ -1,7 +1,7 @@
from slugify import slugify
from groove.db.manager import database_manager
from groove.db.scanner import MediaScanner
from groove.media.scanner import MediaScanner
from groove.shell.base import BasePrompt, command
from groove.exceptions import InvalidPathError
from groove import db