mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
don't error if filesize check fails. #545
This commit is contained in:
parent
71d740e14e
commit
a01d7f1f69
1 changed files with 5 additions and 1 deletions
|
@ -180,7 +180,11 @@ def is_minSize(inputName, minSize):
|
|||
# audio files we need to check directory size not file size
|
||||
inputSize = os.path.getsize(inputName)
|
||||
if fileExt in (nzbtomedia.AUDIOCONTAINER):
|
||||
inputSize = getDirSize(os.path.dirname(inputName))
|
||||
try:
|
||||
inputSize = getDirSize(os.path.dirname(inputName))
|
||||
except:
|
||||
logger.error("Failed to get file size for %s", % (inputName))
|
||||
return True
|
||||
|
||||
# Ignore files under a certain size
|
||||
if inputSize > minSize * 1048576:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue