mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
fix remote_Dri for HeadPhones. Fixes #499 Fix encoding on manual scan.
This commit is contained in:
parent
8540d40cb1
commit
c048c03aa5
5 changed files with 62 additions and 13 deletions
|
@ -727,7 +727,15 @@ def main(args, section=None):
|
|||
if clientAgent.lower() not in nzbtomedia.NZB_CLIENTS and clientAgent != 'manual':
|
||||
continue
|
||||
|
||||
results = process(dirName, os.path.basename(dirName), 0, clientAgent=clientAgent,
|
||||
try:
|
||||
dirName = dirName.encode(nzbtomedia.SYS_ENCODING)
|
||||
except: pass
|
||||
inputName = os.path.basename(dirName)
|
||||
try:
|
||||
inputName = inputName.encode(nzbtomedia.SYS_ENCODING)
|
||||
except: pass
|
||||
|
||||
results = process(dirName, inputName, 0, clientAgent=clientAgent,
|
||||
download_id=download_id, inputCategory=subsection)
|
||||
if results[0] != 0:
|
||||
logger.error("A problem was reported when trying to perform a manual run for %s:%s." % (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue