Added _EXTRA_TRACK when downloading with isrc
This commit is contained in:
parent
fb53bd732f
commit
7ad0f2a13a
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue