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
+2 -1
View File
@@ -5,7 +5,8 @@ from unittest.mock import MagicMock
from sqlalchemy import func
import groove.exceptions
from groove.db import scanner, track
from groove.media import scanner
from groove.db import track
def test_scanner(monkeypatch, in_memory_db):