A LOTTTT ...

+ fix help text
+ run populate once when -nps flag is used
+ update app version
+ sort tracks by track and disc no. when saving to playlist
+ serialize search results
+ update tags.artist -> tags.artists
+ update tags.albumartist -> tags.albumartists
+ remove artist images from serialized albums
+ add function to serialize artists for cards
+ misc
This commit is contained in:
mungai-njoroge
2023-08-10 10:30:42 +03:00
parent 5cf188dd38
commit 0a703dcc0f
20 changed files with 149 additions and 103 deletions
+4 -5
View File
@@ -2,13 +2,12 @@
Contains default configs
"""
import os
from enum import Enum
join = os.path.join
class Release:
APP_VERSION = "1.3.0.beta"
APP_VERSION = "1.3.0"
class Paths:
@@ -129,7 +128,7 @@ class FLASKVARS:
cls.FLASK_HOST = host
class ALLARGS(Enum):
class ALLARGS:
"""
Enumerates the possible app arguments.
"""
@@ -171,7 +170,7 @@ class FromFlags:
MERGE_ALBUM_VERSIONS = False
class ParserFlags(Enum):
class ParserFlags():
EXTRACT_FEAT = "EXTRACT_FEAT"
REMOVE_PROD = "REMOVE_PROD"
CLEAN_ALBUM_TITLE = "CLEAN_ALBUM_TITLE"
@@ -183,7 +182,7 @@ class ParserFlags(Enum):
def get_flag(flag: ParserFlags) -> bool:
return getattr(FromFlags, flag.value)
return getattr(FromFlags, flag)
def get_scan_sleep_time() -> int: