mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
0463c80070
+ fix: unserialized artist result + misc
28 lines
680 B
Python
28 lines
680 B
Python
from app.lib.mapstuff import map_album_colors, map_artist_colors, map_favorites, map_scrobble_data
|
|
from app.lib.populate import CordinateMedia
|
|
from app.lib.tagger import IndexTracks
|
|
from app.store.folder import FolderStore
|
|
|
|
|
|
import gc
|
|
from time import time
|
|
|
|
from app.utils.threading import background
|
|
|
|
|
|
class IndexEverything:
|
|
def __init__(self) -> None:
|
|
IndexTracks(instance_key=time())
|
|
FolderStore.load_filepaths()
|
|
map_scrobble_data()
|
|
map_favorites()
|
|
map_artist_colors()
|
|
map_album_colors()
|
|
CordinateMedia(instance_key=str(time()))
|
|
gc.collect()
|
|
|
|
|
|
@background
|
|
def index_everything():
|
|
return IndexEverything()
|