Open lorenzolamasse opened 1 week ago
Modified a slight bit as well the duration matching as it happens quite often to have around 1 seconds of duration difference between platforms:
def do_durations_match(source_track_duration, found_track_duration):
if abs(source_track_duration - found_track_duration) < 1000:
print("\t\t\t\t[+] Durations match")
return True
else:
print("\t\t\t\t[!] Durations do not match")
return False
Hi,
Made a slight modif in my local base to avoid adding a random matching track when there is no track matching the exact duration. It's mostly the case with remixes and extended versions that are not (yet) available on Spotify. I personally prefer skipping these tracks instead of adding a random version of them: