convert: does auto_keep ignore all other options? #5427
-
Hey y'all, Big fan of beets. Am working on moving my music to a NAS and refactoring how I store my music. My want is:
I've played around with the config file for a few days and have half a solution - using the convert plugin with auto: no, auto_keep: yes, and default path set to \music. Importing flac files results in the lossless version being imported into beets, copied to \lossless-music, and converted into a lossy version stored in \music (perfect!). However, lossy files are still being converted by convert on import, resulting in \music having duplicate versions of lossy files. I've tried setting never_convert_lossy_files and no_convert, but these don't seem to be followed if auto_keep is set to yes. So.. is something wrong with my config file? Is this a bug regarding the convert plugin? Am I doing something with beets that can't be done? Included is a snip of my config file and what my current output is. Thanks for any suggestions in advance. config.yaml:
importing "My Artist - My Album [FLAC] (2024)"
importing "My Artist - My Album [MP3] (2024)"
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I did some digging into the convert plugin. Expected behavior of auto_keep is to keep all files, regardless of compression format and create a file in the dest directory. If the file is lossless, it will convert to lossy and place the file in dest. If the file is lossy, it will copy the file and place in dest. This results in duplicate lossy files - one file in your default directory, the same file in dest. In the above scenario, the dest is the same as default directory, which is why My Artist - My Album [MP3] (2024) ends up with 01 - My Song.1.mp3 and 02 - My Other Song.1.mp3. In addition, auto_keep doesn't take into account the never_convert_lossy_files and no_convert settings (perhaps because no conversion is happening). That's not the case for auto or for using "beet convert", which respects those settings prior to any conversion. A manual way to solve this problem: set auto_keep and auto to no, then import your files as normal. Post import, run "beet convert format:flac". This will transcode flacs to mp3s, moving them to the path listed in the config file. However, I've also created a pull request to try and make auto_keep's behavior more consistant with auto and beet convert. This change now takes the never_convert_lossy_files and no_convert settings into account on import, preventing duplicate lossy files from being made while still converting lossless files to lossy. This is likely a weird personal edgecase, but hopefully it has helped you! |
Beta Was this translation helpful? Give feedback.
I did some digging into the convert plugin. Expected behavior of auto_keep is to keep all files, regardless of compression format and create a file in the dest directory. If the file is lossless, it will convert to lossy and place the file in dest. If the file is lossy, it will copy the file and place in dest.
This results in duplicate lossy files - one file in your default directory, the same file in dest. In the above scenario, the dest is the same as default directory, which is why My Artist - My Album [MP3] (2024) ends up with 01 - My Song.1.mp3 and 02 - My Other Song.1.mp3.
In addition, auto_keep doesn't take into account the never_convert_lossy_files and no_convert settings (perhaps…