finished initial coding

This commit is contained in:
2013-07-06 20:18:52 +10:00
parent 61a5eb9768
commit b8acbcbdc1
3 changed files with 78 additions and 9 deletions

View File

@@ -21,6 +21,7 @@ class EncodeData:
def ToString(self):
return "Input: {0}/tOutput: {2}".format(self.inputFile, self.outputFile)
def __GetInputFilesToEncode(shows):
fileList = []
@@ -82,15 +83,17 @@ def GetFilesToPrepare(path, numberofFiles, shows):
#files is now a list of unprocessed files, but contains shows other than those we are interested in
filesToProcess = []
showsToProcess = []
i = 0
for file in files:
# TODO get these from settings
if TVData.CheckTitleIsInList('localhost', 'script', 'script', 'mythconverg', file):
filesToProcess.append(file)
#if TVData.CheckTitleIsInList('localhost', 'script', 'script', 'mythconverg', file):
showData = TVData.RetrieveEpisodeData('localhost', 'script', 'script', 'mythconverg', file, shows)
if showData:
showsToProcess.append(showData)
i = i + 1
if i == numberofFiles:
return filesToProcess
return showsToProcess
return filesToProcess #will reach here if there were less than numberofFiles found
return showsToProcess #will reach here if there were less than numberofFiles found