Added popup on import where the user can configure how the tracks get imported.

This commit is contained in:
The Wobbler 2025-03-08 17:50:45 +01:00
parent 31b2e3bf41
commit fd34476d00
12 changed files with 289 additions and 28 deletions

15
wobuzz/types/__init__.py Normal file
View file

@ -0,0 +1,15 @@
#!/usr/bin/python3
def __getattr__(name):
match name:
case "Types":
from .types import Types
return Types
case "ImportOptions":
from .import_options import ImportOptions
return ImportOptions
case "CopyType":
from .import_options import CopyType
return CopyType

View file

@ -0,0 +1,18 @@
#!/usr/bin/python3
from dataclasses import dataclass
@dataclass
class ImportOptions:
artist: str=None
album: str=None
genre: str=None
copy_type=0
class CopyType:
symlink = 0
copy = 1
move = 2

9
wobuzz/types/types.py Normal file
View file

@ -0,0 +1,9 @@
#!/usr/bin/python3
from . import ImportOptions
from . import CopyType
class Types:
ImportOptions = ImportOptions
CopyType = CopyType