mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
rewrite populate.py to minimize db and hdd reads
+ change process name in manage.py + update db query to save show albums as single, as an integer + enable periodic scans + misc
This commit is contained in:
+3
-5
@@ -168,7 +168,7 @@ class SessionVars:
|
||||
CLEAN_ALBUM_TITLE = True
|
||||
REMOVE_REMASTER_FROM_TRACK = True
|
||||
|
||||
DO_PERIODIC_SCANS = False
|
||||
DO_PERIODIC_SCANS = True
|
||||
PERIODIC_SCAN_INTERVAL = 600 # 10 minutes
|
||||
"""
|
||||
The interval between periodic scans in seconds.
|
||||
@@ -176,7 +176,7 @@ class SessionVars:
|
||||
|
||||
MERGE_ALBUM_VERSIONS = False
|
||||
ARTIST_SEPARATORS = set()
|
||||
SHOW_ALBUMS_AS_SINGLES = True
|
||||
SHOW_ALBUMS_AS_SINGLES = False
|
||||
|
||||
|
||||
# TODO: Find a way to eliminate this class without breaking typings
|
||||
@@ -189,9 +189,7 @@ class SessionVarKeys:
|
||||
PERIODIC_SCAN_INTERVAL = "PERIODIC_SCAN_INTERVAL"
|
||||
MERGE_ALBUM_VERSIONS = "MERGE_ALBUM_VERSIONS"
|
||||
ARTIST_SEPARATORS = "ARTIST_SEPARATORS"
|
||||
SHOW_ALBUMS_AS_SINGLES = (
|
||||
"SHOW_ALBUMS_AS_SINGLES"
|
||||
)
|
||||
SHOW_ALBUMS_AS_SINGLES = "SHOW_ALBUMS_AS_SINGLES"
|
||||
|
||||
|
||||
def get_flag(key: SessionVarKeys) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user