mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 06:13:19 -07:00
test for absolute path. #1671
This commit is contained in:
parent
2a5afd2d7d
commit
b79c959022
1 changed files with 3 additions and 0 deletions
|
@ -99,6 +99,9 @@ def parse_synods(args):
|
|||
input_directory = task['additional']['detail']['destination']
|
||||
except:
|
||||
logger.error('unable to find download details in Synology DS')
|
||||
#Syno paths appear to be relative. Let's test to see if the returned path exists, and if not append to /volume1/
|
||||
if not os.path.isdir(input_directory) and os.path.isdir(os.path.join('/volume1/', input_directory)):
|
||||
input_directory = os.path.join('/volume1/', input_directory)
|
||||
return input_directory, input_name, input_category, input_hash, input_id
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue