combine userdata and swing db into one

+ port populate to new db interface
+ add genrehashes and hash info to tracks
+ properly structure new db table files
+ move helpers to dedicated utils file
+ move settings from db to config file
+ move artists, albums, auth and favorites endpoint to new db interface
+ use folder store to index filepaths
+ paginate favorite pages
+ 56 moretiny changes 😅
This commit is contained in:
cwilvx
2024-06-30 15:06:33 +03:00
parent 1a66194c6c
commit 4a9f804e70
53 changed files with 1719 additions and 1353 deletions
+4 -3
View File
@@ -9,6 +9,7 @@ import sys
import PyInstaller.__main__ as bundler
from app import settings
from app.config import UserConfig
from app.logger import log
from app.print_help import HELP_MESSAGE
from app.utils.auth import hash_password
@@ -160,7 +161,7 @@ class ProcessArgs:
@staticmethod
def handle_periodic_scan():
if any((a in ARGS for a in ALLARGS.no_periodic_scan)):
settings.SessionVars.DO_PERIODIC_SCANS = False
UserConfig().enablePeriodicScans = False
@staticmethod
def handle_periodic_scan_interval():
@@ -182,10 +183,10 @@ class ProcessArgs:
sys.exit(0)
if psi < 0:
print("WADAFUCK ARE YOU TRYING?")
print("WHAT ARE YOU TRYING?")
sys.exit(0)
settings.SessionVars.PERIODIC_SCAN_INTERVAL = psi
UserConfig().scanInterval = psi
@staticmethod
def handle_help():