stable stat
This commit is contained in:
parent
b1c96511a3
commit
11fb2816e3
11 changed files with 181 additions and 174 deletions
6
Flow.py
6
Flow.py
|
|
@ -10,7 +10,7 @@ from src.spotify.ParseSpotify import Parser
|
|||
from src.local.LocalLibraryIndexer import update_local_library
|
||||
from src.local.ParseLocal import LocalParser
|
||||
|
||||
from src.MapLocalToSpotify import map_local_to_spotify
|
||||
from src.mappers.RemoteLibraryResolver import resolve_remote_tracks
|
||||
from src.StatGenerator import log_stats
|
||||
|
||||
|
||||
|
|
@ -50,10 +50,10 @@ class Flow:
|
|||
self.local_library = LibraryLoader().load(work_dir / "local_library.json")
|
||||
|
||||
def map_local_to_spotify(self):
|
||||
map_local_to_spotify(client_id, client_secret, self.local_library, self.spotify_library, work_dir)
|
||||
resolve_remote_tracks(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)
|
||||
log_stats(work_dir / "remote_to_local_map.json", work_dir / "stats.json", self.local_library, self.spotify_library)
|
||||
|
||||
|
||||
def run(self, arg):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue