Added _EXTRA_TRACK when downloading with isrc

This commit is contained in:
RemixDev 2020-09-15 20:13:50 +02:00
parent fb53bd732f
commit 7ad0f2a13a
1 changed files with 3 additions and 3 deletions

View File

@ -37,9 +37,9 @@ class QueueManager:
elif type == "track": elif type == "track":
if id.startswith("isrc"): if id.startswith("isrc"):
try: try:
isrcTest = dz.get_track(id) trackAPI = dz.get_track(id)
if 'id' in isrcTest and 'title' in isrcTest: if 'id' in trackAPI and 'title' in trackAPI:
id = isrcTest['id'] id = trackAPI['id']
else: else:
return QueueError(url, "Track ISRC is not available on deezer", "ISRCnotOnDeezer") return QueueError(url, "Track ISRC is not available on deezer", "ISRCnotOnDeezer")
except APIError as e: except APIError as e: