mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
Fix call to is_sample
This commit is contained in:
parent
140926efae
commit
ef60db5563
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ for dirpath, dirnames, filenames in os.walk(outputDestination):
|
||||||
filePath = os.path.join(dirpath, file)
|
filePath = os.path.join(dirpath, file)
|
||||||
fileExtention = os.path.splitext(file)[1]
|
fileExtention = os.path.splitext(file)[1]
|
||||||
if fileExtention in mediaContainer: # If the file is a video file
|
if fileExtention in mediaContainer: # If the file is a video file
|
||||||
if is_sample(filePath, inputName):
|
if is_sample(filePath, inputName, minSampleSize):
|
||||||
Logger.debug("Removing sample file: %s", filePath)
|
Logger.debug("Removing sample file: %s", filePath)
|
||||||
os.unlink(filePath) # remove samples
|
os.unlink(filePath) # remove samples
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue