New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fetchart uses .jpg, extractart uses .jpeg #2254
Comments
Thanks! We should definitely make that consistent. |
This should be a quick fix. This seems to indicate |
Sounds good to me. Staying consistent with |
BTW this makes me realize that my fix in #1545 should have targeted this too, but it didn't, and
I will try to bring all of this under one umbrella while fixing this issue. |
The extractart command in the embedart plugin uses the string output of imghdr.what as an extension. That's "jpeg."
beets/beets/art.py
Line 197 in db782a2
Meanwhile, over in fetchart, it seems to use the first entry in IMAGE_EXTENSIONS for mime type image/jpeg, which is .jpg.
beets/beetsplug/fetchart.py
Line 44 in db782a2
To reproduce:
Import something with no art, but has jpeg art in a configured fetchart source.
beet fetchart album
beet embedart album
beet extractart album
now you have cover.jpg and cover.jpeg or sometimes cover.1.jpeg or sometimes cover.1.jpg... it's kind of a big mess and seems weirdly nondeterministic at times.
This is normally harmless, but sometimes results in excessive clutter when re-importing old things.
The text was updated successfully, but these errors were encountered: