added some unit tests
This commit is contained in:
parent
6e2aff7ab8
commit
e7fa163480
2 changed files with 48 additions and 2 deletions
|
|
@ -125,12 +125,12 @@ class TVData:
|
|||
return os.path.join(dir, filename)
|
||||
|
||||
|
||||
def ProcessEpisode(inputFile, outputFile):
|
||||
def ProcessEpisode(self, inputFile, outputFile):
|
||||
outputdir = os.path.dirname(outputFile)
|
||||
if not os.path.exists(outputdir):
|
||||
os.makedirs(outputdir)
|
||||
|
||||
shutil.move(inputFile, outputFile)
|
||||
shutil.copyfile(inputFile, outputFile)
|
||||
|
||||
def PrepareEpisodes(self, showsData):
|
||||
for showData in showsData:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue