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:
geoffrey45
2022-04-21 10:16:45 +03:00
parent ef68cae625
commit d98cc0547e
22 changed files with 448 additions and 380 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ class AllSongs(db.Mongo):
},
upsert=True).upserted_id
def get_all_songs(self) -> list:
def get_all_tracks(self) -> list:
"""
Returns all tracks in the database.
"""