Synology - Post Process Script Permission denied
Posted: May 16th, 2016, 3:59 am
Hi all,
I am new to this but i have tried to set up Sabnzbd with sickbeard to do auto downloads for all my tv series. It has been doing the downloads fine but then i wanted to also transcode most of the files downaloaded are in .mkv type file but i want to use .mp4 files which works well with Chromecast.
I found this script which i m using but getting permission denied error not sure what i am doing wrong?
Any ideas?
Thanks for help in advance
I am new to this but i have tried to set up Sabnzbd with sickbeard to do auto downloads for all my tv series. It has been doing the downloads fine but then i wanted to also transcode most of the files downaloaded are in .mkv type file but i want to use .mp4 files which works well with Chromecast.
I found this script which i m using but getting permission denied error not sure what i am doing wrong?
Code: Select all
python: can't open file '/volume1/Downloads/Scripts/sabToSickBeardwithConverter.py': [Errno 13] Permission deniedCode: Select all
#!/usr/bin/env python
import os
import sys
import autoProcessTV
from readSettings import ReadSettings
from mkvtomp4 import MkvtoMp4
settings = ReadSettings(os.path.dirname(sys.argv[0]), "autoProcess.ini")
path = str(sys.argv[1])
converter = MkvtoMp4(settings)
converter.output_dir = None
for r, d, f in os.walk(path):
for files in f:
inputfile = os.path.join(r, files)
if MkvtoMp4(settings).validSource(inputfile):
try:
print "Valid file detected: " + inputfile
except:
print "Valid file detected"
converter.process(inputfile)
"""Contents of sabToSickbeard.py"""
if len(sys.argv) < 2:
print "No folder supplied - is this being called from SABnzbd?"
sys.exit()
elif len(sys.argv) >= 3:
autoProcessTV.processEpisode(sys.argv[1], sys.argv[2])
else:
autoProcessTV.processEpisode(sys.argv[1])
Thanks for help in advance