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

Be smarter about finding album art #17

Open
graue opened this issue Mar 14, 2013 · 0 comments
Open

Be smarter about finding album art #17

graue opened this issue Mar 14, 2013 · 0 comments
Labels

Comments

@graue
Copy link
Owner

graue commented Mar 14, 2013

Currently Pots, fyi only marks an album as having art if it finds a "cover.jpg", "folder.jpg", "cover.png", or "folder.png" image in the same directory as the first file found that belongs to the album.

If there are .jpg/.png files in the directory, but none named 'cover' or 'folder', we could take the image with the largest filesize.

It would also make sense to take the longest path prefix common to all files in the album and look there for art, e.g.

Some Album/CD1/01 - Disc One Track One.mp3
Some Album/CD1/ ... [more files] ...
Some Album/CD2/02 - Disc Two Track One.mp3
Some Album/CD2/ ... [more files] ...
Some Album/folder.jpg

Right now, the art won't be found in this case, because it's not in the same directory as the first file found.

@graue graue added the Updates label Dec 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant