mirror of
https://github.com/beetbox/beets.git
synced 2026-02-24 08:12:54 +01:00
Reject lossy formats under a set bitrate.
This commit is contained in:
parent
53aba3ce3f
commit
d3dae9f089
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue