beets
beets copied to clipboard
Fix extension issue in convert plugin when exporting a playlist
Description
Fix extension substitution inside path of the exported playlist.
Before this, the exported playlist contained relative paths pointing to the converted files BUT the extension were not substituted comparing to before and the after the conversion. Therefore, running the playlist will fail for files which have been converted and where extension have changed.
Example:
- Convert
/path/to/library/artist.flacto/path/to/converted/artist.mp3using the-m playlist.m3ucommand-line flag. - Open the generated playlist, and find the incorrect path
/path/to/converted/artist.flacinside.
To Do
- [X] Documentation
- [X] Changelog
- [X] Tests
Hi! Thanks for the PR. I've left a comment or two. Would you also be able to add a test that fails under the old code and succeeds with the new?
I'm not familiar with unit tests in Python, but since you ask, I will give a try!
I added the appropriate test case! ;)