mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-09 12:37:22 +00:00
26 lines
535 B
Python
26 lines
535 B
Python
from typing import List
|
|
|
|
from app import models, instances
|
|
from app import functions, helpers, prep
|
|
from app.lib import albumslib
|
|
|
|
|
|
DB_TRACKS = instances.songs_instance.get_all_songs()
|
|
ALBUMS: List[models.Album] = []
|
|
TRACKS: List[models.Track] = []
|
|
PLAYLISTS: List[models.Playlist] = []
|
|
|
|
|
|
@helpers.background
|
|
def initialize() -> None:
|
|
"""
|
|
Runs all the necessary setup functions.
|
|
"""
|
|
functions.start_watchdog()
|
|
albumslib.create_everything()
|
|
prep.create_config_dir()
|
|
functions.reindex_tracks()
|
|
|
|
|
|
initialize()
|