Skip to content
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: Reconcile file types with embedart #1588

Closed
Kolbasz12 opened this issue Sep 1, 2015 · 4 comments
Closed

fetchart: Reconcile file types with embedart #1588

Kolbasz12 opened this issue Sep 1, 2015 · 4 comments
Labels
bug bugs that are confirmed and actionable

Comments

@Kolbasz12
Copy link

Is there a way to make the fetchart plugin ignore image formats that are not supported or convert them from not supported formats to ones that are supported?

I have some files I was updating, fetching and embedding art. For the most part it just ran, but every time it hit a gif image, it threw an error. fetchart pulled the gifs during import, so if there was a way to make it ignore gifs on import or convert them, this would avoid the error.

Specifically:

embedart: not embedding image of unsupported type: image/gif

@sampsyo
Copy link
Member

sampsyo commented Sep 1, 2015

Thanks for reporting. We do filter on type but, weirdly, the plugins disagree on their whitelist:
https://github.com/sampsyo/beets/blob/master/beetsplug/fetchart.py#L41
https://github.com/sampsyo/beets/blob/master/beets/art.py#L76

MediaFile says PNG, not GIF:
https://github.com/sampsyo/beets/blob/master/beets/mediafile.py#L664

Investigating.

@sampsyo sampsyo changed the title fetchart: exclude file types that are not supported fetchart: Reconcile file types with embedart Sep 1, 2015
@sampsyo sampsyo added the bug bugs that are confirmed and actionable label Sep 1, 2015
@Kolbasz12
Copy link
Author

as a note, I did a test with one of the albums where I saw the error.

I did a fetchart -f, it pulled new art, i then ran embed art and it said it is not embedding because the art already is embedded, but it did not throw the error noted above

or, does fetch art also embed it?

@sampsyo
Copy link
Member

sampsyo commented Sep 1, 2015

fetchart -f only forces fetching; it does not re-embed. (For that, you'll need to run the embedart command also with its force flag.)

@Kolbasz12
Copy link
Author

ok, thats what I thought, so it is interesting that before it said not embedding gif, but when I force pull a new image it does not embed because it already has art. I will check the file to see what it has later tongiht

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs that are confirmed and actionable
Projects
None yet
Development

No branches or pull requests

2 participants