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: Add itunes "high resolution" artwork #3391

Closed
texneus opened this issue Oct 6, 2019 · 4 comments
Closed

fetchart: Add itunes "high resolution" artwork #3391

texneus opened this issue Oct 6, 2019 · 4 comments
Assignees
Labels
feature features we would like to implement

Comments

@texneus
Copy link

texneus commented Oct 6, 2019

Use case

Use beets to tag, catalog, and fetch artwork. The FetchArt plugin is enabled to gather album art work. I have found this website that pulls itunes artwork giving the option of both standard (600x600) and hi-res coverart. The resolution of the high resolution artwork varies, but from what I am seeing is almost always 1500x1500 minimum, and new-ish releases are much higher (for example The Cranberries "In the End" is a 4000x4000). Besides the size, the artwork is very high quality.

Unfortunately, Beets/FetchArt does not seem to be able to find the high-resolution artwork. To duplicate, install the FetchArt plugin, and configure FetchArt SOURCES to use only itunes, and set MINWIDTH to 1000. Verify on the iTunes Artwork Finder that high-resolution itunes artwork exists for a target album (for example: The Cranberries "In the End"), although if there is itunes artwork I have yet to find a case where a high-resolution artwork does not also exist. FetchArt will fail to find any artwork.

Solution

Enable FetchArt to fetch high resolution artwork from itunes. The subject webpage offers his code (in JavaScript and PHP) on GitHub here for examination.

Alternatives

The only alternative I am aware of is to manually fetch the artwork.

@sampsyo sampsyo added the feature features we would like to implement label Oct 6, 2019
@sampsyo sampsyo changed the title FetchArt Plugin: Add itunes "high resolution" artwork fetchart: Add itunes "high resolution" artwork Oct 6, 2019
@sampsyo
Copy link
Member

sampsyo commented Oct 6, 2019

Sounds great! This seems like a good idea.

@wisp3rwind wisp3rwind self-assigned this Oct 10, 2019
@wisp3rwind
Copy link
Member

Assigned this to myself; however: I will not have time to look at this at least for another month, so if anyone else wants to go ahead, please do so

@mathieupinet
Copy link
Contributor

I just had a look at this- it seems the only change would be to fetch an image filename ending with 100000x100000-999 rather than 1200x1200 in fetchchart(as that's what the website cited in the PR retrieves) , in this line as well as L523:

art_url = art_url.replace('100x100', '1200x1200')

I succeeded in getting the 4000x4000 In the End cover art with this simple fix, but interestingly the image filesize was 20.7MB (as opposed to 608KB for the 1200x1200 version).

Therefore it probably shouldn't be the default for the iTunes source, as it has wider implications for disk and bandwidth usage than a user would expect?

@sampsyo
Copy link
Member

sampsyo commented Dec 17, 2019

Yeah, sounds good! Putting exactly that change behind a config flag seems like the right thing to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature features we would like to implement
Projects
None yet
Development

No branches or pull requests

4 participants