tmp
This commit is contained in:
parent
d8929d3064
commit
a4524d7384
5 changed files with 31 additions and 16 deletions
|
|
@ -1,7 +1,7 @@
|
|||
from DataBase import *
|
||||
from SpotifyWebAPI import find_song, update_access_token
|
||||
|
||||
from fuzzywuzzy import fuzz
|
||||
from rapidfuzz import fuzz
|
||||
from tqdm import tqdm
|
||||
|
||||
|
||||
|
|
@ -99,7 +99,7 @@ def fuzzy_tag_pattern_generator():
|
|||
album_ratio = fuzz.token_set_ratio(first.album, second.album) / 100
|
||||
return title_ratio, artist_ratio, album_ratio
|
||||
|
||||
with tqdm(total=len(local_library), desc='Searching local songs on spotify') as pbar:
|
||||
with tqdm(total=len(local_library), desc='fuzzy_tag_pattern_generator') as pbar:
|
||||
for local_track_id, local_track in local_library.items():
|
||||
mapping = mappings.get(local_track_id, {"score": 1.0, "items": []})
|
||||
ratios = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue