move error fixing
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user