Reject lossy formats under a set bitrate.

This commit is contained in:
Rowan Lewis 2013-09-13 08:13:30 +10:00
parent 53aba3ce3f
commit d3dae9f089

View file

@ -110,7 +110,7 @@ def should_transcode(item):
conversion (i.e., its bitrate is high or it has the wrong format).
"""
maxbr = config['convert']['max_bitrate'].get(int)
return item.format != 'MP3' or item.bitrate >= 1000 * maxbr
return item.format not in ['MP3', 'Opus', 'OGG'] or item.bitrate >= 1000 * maxbr
def convert_item(lib, dest_dir, keep_new, path_formats):