Fixed track download through ISRC

This commit is contained in:
RemixDev 2020-07-23 15:10:18 +02:00
parent d265514ba0
commit fc0d781219
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ def generateQueueItem(dz, sp, url, settings, bitrate=None, albumAPI=None, interf
if id.startswith("isrc"):
try:
trackAPI = dz.get_track(id)
if 'id' in dz_track and 'title' in dz_track:
if 'id' in trackAPI and 'title' in trackAPI:
id = trackAPI['id']
else:
result['error'] = "Track ISRC is not available on deezer"