Added popup on import where the user can configure how the tracks get imported.
This commit is contained in:
parent
31b2e3bf41
commit
fd34476d00
12 changed files with 289 additions and 28 deletions
15
wobuzz/types/__init__.py
Normal file
15
wobuzz/types/__init__.py
Normal 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
|
18
wobuzz/types/import_options.py
Normal file
18
wobuzz/types/import_options.py
Normal 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
9
wobuzz/types/types.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
from . import ImportOptions
|
||||
from . import CopyType
|
||||
|
||||
|
||||
class Types:
|
||||
ImportOptions = ImportOptions
|
||||
CopyType = CopyType
|
Loading…
Add table
Add a link
Reference in a new issue