finished initial coding
This commit is contained in:
11
TVEncoder.py
11
TVEncoder.py
@@ -8,8 +8,9 @@ Created on Fri Jul 5 14:14:22 2013
|
||||
import sys
|
||||
import getopt
|
||||
import libfilemanager
|
||||
import libsettings
|
||||
from libsettings import Settings
|
||||
import libhandbrake
|
||||
import libtvdatasource
|
||||
|
||||
TVRECORDINGSDIR = "/srv/storage2/videos/TVRecordings/" # TODO move this to settings
|
||||
|
||||
@@ -22,6 +23,9 @@ def ShowHelp():
|
||||
def PrintShowsToEncode(showData):
|
||||
print "/n".join(showData)
|
||||
|
||||
def PrintShowsToPrepare(showData):
|
||||
print "/n".join(showData)
|
||||
|
||||
def main(argv):
|
||||
numFiles = 0
|
||||
doEncode = False
|
||||
@@ -58,7 +62,8 @@ def main(argv):
|
||||
PrintShowsToEncode(showData)
|
||||
else:
|
||||
# Generate the list of files to process
|
||||
files = GetFilesToPrepare(TVRECORDINGSDIR, numFiles, shows)
|
||||
shows = GetFilesToPrepare(TVRECORDINGSDIR, numFiles, shows)
|
||||
PrintShowsToPrepare(shows)
|
||||
else:
|
||||
if doEncode:
|
||||
#Encode the files and move them to their final destination
|
||||
@@ -73,6 +78,8 @@ def main(argv):
|
||||
PerformPostEncodeFileOperations(show.inputFile, show.outputFile)
|
||||
else:
|
||||
# TODO Process files for encoding
|
||||
shows = GetFilesToPrepare(TVRECORDINGSDIR, numFiles, shows)
|
||||
PrepareEpisodes(shows)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main(sys.argv[1:])
|
||||
Reference in New Issue
Block a user