Hey guys! I ran into this script not too long ago and I will experiment with it. How would you feel about having artwork on tracks?
I understand we could simply use an API to fetch it via Apple Music or another service, but in some cases it’s not enough. So I added support for ID3 tags using getID3 that allow us to do more with tracks, even modify the actual tracks.
I have an app that uses Apple Music to fetch the artwork, but in some cases some tracks are not available (custom, exclusives, etc…) therefor no artwork is available, well the solution was simple, if no track was found in Apple Music then the app fetches the artwork from my server. It’s why I think it should be included. Besides it looks great and give Libretime a little bit of life, being able to see an image attached to the file.
Watch my fork here: https://github.com/codenift/libretime.
It is still very buggy, not completed, but works… Don’t use on a production server yet. Test it, optimize it, improve on it, so we can make this better. Let me know. It can handle loading images quickly for the 100 tracks limit on each page it already queries. For testing, make sure the tracks all have artwork on it. I just did some quick tests and forgot to fix the fallback if it has no artwork. I wasn’t able to upload many of my tracks, maybe an issue with the formatting that needs to get checked, so for testing I had to delete a few of them and upload again. Incase it hangs in the library, just go to Settings > General and in Dangerous Options delete all files. Don’t upload the file that made it hang. This will be fixed in a update.
Option to not show images in Library, I had this setup in Library columns but it showed the little sorting arrows so I just removed it for now.
Drag & drop artwork to the image that’s already there in edit tab using AJAX. Writes data URI into the existing file I set up for artwork. We’re not saving the data URI into database. Now with getID3 we can include artwork inside MP3 file if we wanted to, I know it may not be necessary if nothing is being moved but if something happens or just want to download at least all files will have updated data. And since Libretime has option to download then I think it makes sense.
Add artwork next to the current track being played on the top .
Scan and update tracks that don’t have artwork set? To have when updating a previous production Libretime.
Right click on artwork inside edit tab with option to fetch artwork in MP3