Comments (5)
Might I suggest that, to cover all bases, you just automatically pick any image from the song folder based off the following priorities?
- Largest image with the file name cover.???, folder.???, or Folder.???
- Largest image with any other file name
And you should not just import jpeg and png, but also gif, webp, and maybe even avif if the libraries you're using support them. Make sure that it picks up both .jpg and .jpeg extensions for jpeg images if you're doing it that way.
from resonance.
Do you know if there's some kind of de facto standard for what album art is named in the folder? Typically I see cover.whatever but sometimes I see folder.whatever . Parsing the image file names becomes an issue when there's more than one cover, additional art or artist images in the folder as well.
from resonance.
I could definitely also implement crawling for art, I already have this functionality for MPRIS and discord art by looking up the MusicBrainz ID for a release and then using the cover art archive: https://coverartarchive.org/, but maybe I could scrape discogs for higher quality art?
from resonance.
I think lollypop uses cover.(jpg/png).
The exact implementation is here:
https://gitlab.gnome.org/World/lollypop/-/blob/master/lollypop/artwork_album.py
Maybe this helps
from resonance.
Yeah I think I'll probably just only look for cover.(jpg|png) in order to mitigate the complexity of trying to determine the right file
from resonance.
Related Issues (20)
- [Feature request] Support for SUBTITLE/DISCSUBTITLE tags
- [Feature request/improvement] Support for local artist images
- [Feature/Change] reading matadata with id3 instead of python script
- Discord time left desyncs while paused
- Ampersands are not escaped in markup fields
- [Feature request] Folder View
- Music folder is not automatically syncronized HOT 1
- Crashes on Launch
- Does not play when switching artists
- Albulm art doesnt match system player
- Multi Artist album gets another album listing for every artist tag of each song HOT 1
- Support for bigger libraries HOT 2
- Mobile UI HOT 1
- Spotify integration
- libgtk-4.so.1 error
- Bind space bar to pause/play
- mpris:length worng value
- remember if windowed or fullscreen
- remember volume
- Subsonic music server support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resonance.