mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
Save complete tracks and albums to the db for faster startup
- refactor function locations - add logger - check for new tracks instead of re-processing all files
This commit is contained in:
@@ -13,13 +13,13 @@ from app.lib import folderslib
|
||||
from app.lib import playlistlib
|
||||
|
||||
|
||||
PRE_TRACKS = instances.songs_instance.get_all_songs()
|
||||
DB_TRACKS = instances.tracks_instance.get_all_tracks()
|
||||
VALID_FOLDERS: Set[str] = set()
|
||||
|
||||
ALBUMS: List[models.Album] = []
|
||||
TRACKS: List[models.Track] = []
|
||||
PLAYLISTS: List[models.Playlist] = []
|
||||
FOLDERS: List[models.Folder] = []
|
||||
FOLDERS: Set[models.Folder] = set()
|
||||
|
||||
|
||||
@helpers.background
|
||||
|
||||
Reference in New Issue
Block a user