2012-08-20, 14:09
(2012-08-20, 09:47)Popeye Wrote: Ok, here is what I mean (untested, probably wrong)
PHP Code:...
strmDirectory = os.path.join(directory, self.createNzbName(data, movie))
if not os.path.exists(strmDirectory):
try:
os.mkdir(strmDirectory)
except:
log.error('Failed to write strm directory', traceback.format_exc())
fullPath = os.path.join(strmDirectory, self.createFileName(data, filedata, movie))
try:
......
Thanks a lot, it worked almost straight out of the box, I just had to replace this on line 37
PHP Code:
strm_path = os.path.join(directory, nzb_name)
with that, now it also writes the strm file in the correct directory.
PHP Code:
strm_path = os.path.join(strmDirectory, nzb_name)