mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Streamline conditional statements
* Non-zero ints evaluate True.
This commit is contained in:
parent
eb1ee8b5f5
commit
a983c6c7be
1 changed files with 2 additions and 2 deletions
|
@ -169,11 +169,11 @@ class autoProcessMovie(object):
|
||||||
if transcoder.isVideoGood(video, status):
|
if transcoder.isVideoGood(video, status):
|
||||||
import_subs(video)
|
import_subs(video)
|
||||||
good_files += 1
|
good_files += 1
|
||||||
if num_files > 0 and good_files == num_files:
|
if num_files and good_files == num_files:
|
||||||
if status:
|
if status:
|
||||||
logger.info("Status shown as failed from Downloader, but {0} valid video files found. Setting as success.".format(good_files), section)
|
logger.info("Status shown as failed from Downloader, but {0} valid video files found. Setting as success.".format(good_files), section)
|
||||||
status = 0
|
status = 0
|
||||||
elif num_files > 0 and good_files < num_files:
|
elif num_files and good_files < num_files:
|
||||||
logger.info("Status shown as success from Downloader, but corrupt video files found. Setting as failed.", section)
|
logger.info("Status shown as success from Downloader, but corrupt video files found. Setting as failed.", section)
|
||||||
if 'NZBOP_VERSION' in os.environ and os.environ['NZBOP_VERSION'][0:5] >= '14.0':
|
if 'NZBOP_VERSION' in os.environ and os.environ['NZBOP_VERSION'][0:5] >= '14.0':
|
||||||
print('[NZB] MARK=BAD')
|
print('[NZB] MARK=BAD')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue