fix nzoid match

This commit is contained in:
clinton-hall 2014-11-06 15:55:55 +10:30
commit fe1edb5b9d

View file

@ -823,8 +823,9 @@ def get_nzoid(inputName):
return nzoid # failure
try:
result = r.json()
cleanName = os.path.splitext(os.path.split(inputName)[1])[0]
for slot in result['queue']['slots']:
if slot['filename'] == inputName:
if slot['filename'] in [inputName, cleanName]:
nzoid = slot['nzo_id']
logger.debug("Found nzoid: %s" % nzoid)
break