Project

General

Profile

« Previous | Next » 

Revision bb574d3f

Added by David Sorber over 7 years ago

Fix bug in encode complete email of final size percentage of original
size. Version 0.4.1.

View differences:

software/hbkcd/hbkcd/daemon.py
if ENABLE_ENCODE_COMPLETE_EMAILS:
subject = 'hbkcd Encode Complete'
msg = '{:s}\n\nEncoded: {:s}\nInitial Size: {:s}\n\n'\
'Output: {:s}\nFinal Size: {:s} ({:.2f}%)\n\n'\
'Output: {:s}\nFinal Size: {:s} ({:.2f}%)\n\n'\
'Duration: {:s}\nQueued time: {:s}\nEncode log: {:s}\n'
ratio = (item.final_size / (item.initial_size * 1.0))
percent = ratio * 100
send_email(subject, msg.format(status, item.path,
pp_filesize(item.initial_size),
item.output_file,
pp_filesize(item.final_size),
ratio, elapsed_str, queued_str,
percent, elapsed_str, queued_str,
log_path))
logging.debug('Sent encode complete email')
software/hbkcd/setup.py
setup(
name = 'hbkcd',
version = '0.4.0',
version = '0.4.1',
description = 'HandBrake Control Daemon',
packages = find_packages(),
python_requires = '>=3.6.0',

Also available in: Unified diff