mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -07:00
missed link in getDirs. Fixes #519
This commit is contained in:
parent
8006d20df4
commit
5949a7d9dc
1 changed files with 2 additions and 2 deletions
|
@ -482,7 +482,7 @@ def parse_args(clientAgent, args):
|
||||||
return None, None, None, None, None
|
return None, None, None, None, None
|
||||||
|
|
||||||
|
|
||||||
def getDirs(section, subsection):
|
def getDirs(section, subsection, link = 'hard'):
|
||||||
to_return = []
|
to_return = []
|
||||||
|
|
||||||
def processDir(path):
|
def processDir(path):
|
||||||
|
@ -547,7 +547,7 @@ def getDirs(section, subsection):
|
||||||
except: pass
|
except: pass
|
||||||
|
|
||||||
# link file to its new path
|
# link file to its new path
|
||||||
copy_link(mediafile, newfile, 'hard')
|
copy_link(mediafile, newfile, link)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error("Failed to move %s to its own directory: %s" % (os.path.split(mediafile)[1], e))
|
logger.error("Failed to move %s to its own directory: %s" % (os.path.split(mediafile)[1], e))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue