Fixed logging for errors in queuemanager
This commit is contained in:
parent
2e8d3f4e02
commit
8647d262fc
|
@ -242,7 +242,7 @@ def addToQueue(dz, sp, url, settings, bitrate=None, interface=None):
|
||||||
if type(queueItem) is list:
|
if type(queueItem) is list:
|
||||||
for x in queueItem:
|
for x in queueItem:
|
||||||
if 'error' in x:
|
if 'error' in x:
|
||||||
logger.error(f"[{x['uuid']}] {x['error']}")
|
logger.error(f"[{url}] {x['error']}")
|
||||||
continue
|
continue
|
||||||
if x['uuid'] in list(queueList.keys()):
|
if x['uuid'] in list(queueList.keys()):
|
||||||
logger.warn(f"[{x['uuid']}] Already in queue, will not be added again.")
|
logger.warn(f"[{x['uuid']}] Already in queue, will not be added again.")
|
||||||
|
@ -254,7 +254,7 @@ def addToQueue(dz, sp, url, settings, bitrate=None, interface=None):
|
||||||
queueList[x['uuid']] = x
|
queueList[x['uuid']] = x
|
||||||
else:
|
else:
|
||||||
if 'error' in queueItem:
|
if 'error' in queueItem:
|
||||||
logger.error(f"[{queueItem['uuid']}] {queueItem['error']}")
|
logger.error(f"[{url}] {queueItem['error']}")
|
||||||
if interface:
|
if interface:
|
||||||
interface.send("toast", {'msg': queueItem['error'], 'icon': 'error'})
|
interface.send("toast", {'msg': queueItem['error'], 'icon': 'error'})
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue