move error fixing

This commit is contained in:
2013-07-06 21:10:16 +10:00
parent 74b50ef3a2
commit d0d66fe9a8
5 changed files with 25 additions and 21 deletions

View File

@@ -12,7 +12,7 @@ from libsettings import Settings
from libhandbrake import Encoder
import libtvdatasource
TVRECORDINGSDIR = "/srv/storage2/videos/TVRecordings/" # TODO move this to settings
TVRECORDINGSDIR = "/Volumes/TV Recordings/"#"/srv/storage2/videos/TVRecordings/" # TODO move this to settings
def ShowHelp():
print 'TVEncoder.py -p -n <number of files to prepare for processing> - prepare n recordings'
@@ -53,16 +53,16 @@ def main(argv):
readOnly = True
doList = True
shows = Settings("") # TODO call actual settings file
showSettings = Settings("settings.xml") # TODO call actual settings file
if readOnly and doList:
if doEncode:
#Generate the list of files that would be encoded
showData = libfilemanager.GetEncodingFiles(shows, readOnly)
showData = libfilemanager.GetEncodingFiles(showSettings, readOnly)
PrintShowsToEncode(showData)
else:
# Generate the list of files to process
shows = libfilemanager.GetFilesToPrepare(TVRECORDINGSDIR, numFiles, shows)
shows = libfilemanager.GetFilesToPrepare(TVRECORDINGSDIR, numFiles, showSettings)
PrintShowsToPrepare(shows)
else:
if doEncode: