This commit is contained in:
Шурупов Илья Викторович 2026-01-05 01:19:00 +03:00
parent 5f4bbbaa59
commit 20c7b28ed6
7 changed files with 91 additions and 276 deletions

View file

@ -11,6 +11,7 @@ from src.local.LocalLibraryIndexer import update_local_library
from src.local.ParseLocal import LocalParser
from src.MapLocalToSpotify import map_local_to_spotify
from src.StatGenerator import log_stats
class Flow:
@ -51,6 +52,10 @@ class Flow:
def map_local_to_spotify(self):
map_local_to_spotify(client_id, client_secret, self.local_library, self.spotify_library, work_dir)
def log_stats(self):
log_stats(work_dir / "local_to_spotify_id_map.json", work_dir / "stats.json", self.local_library, self.spotify_library)
def run(self, arg):
self.fetch_local()
# self.do_fetch_spotify()