mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 22:03:13 -07:00
fix nzoid match
This commit is contained in:
parent
d050934a60
commit
fe1edb5b9d
1 changed files with 2 additions and 1 deletions
|
@ -823,8 +823,9 @@ def get_nzoid(inputName):
|
||||||
return nzoid # failure
|
return nzoid # failure
|
||||||
try:
|
try:
|
||||||
result = r.json()
|
result = r.json()
|
||||||
|
cleanName = os.path.splitext(os.path.split(inputName)[1])[0]
|
||||||
for slot in result['queue']['slots']:
|
for slot in result['queue']['slots']:
|
||||||
if slot['filename'] == inputName:
|
if slot['filename'] in [inputName, cleanName]:
|
||||||
nzoid = slot['nzo_id']
|
nzoid = slot['nzo_id']
|
||||||
logger.debug("Found nzoid: %s" % nzoid)
|
logger.debug("Found nzoid: %s" % nzoid)
|
||||||
break
|
break
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue