Please make adding music to a library more sane

Alternative title: please make Plex stop making me cry

I don’t even know where to begin with this. I struggle with Plex on a daily basis. Here’s the problem: I try to add it to a standard Plex music library. Sometimes it seems like it gets EVERYTHING WRONG. I’ve already tried using a premium library, that was actually even worse.

I have a directory with 1 subdirectory for each album, each with the album name as title. Each album directory has sequentially numbered music files with each file properly tagged with album name, artist name, disc number, track number, track title, and album artist where applicable. Every album directory has a cover.jpg and background.jpg and each file is embedded with a downsampled 350x350px front cover image. It’s an incredibly logical, incredibly simple setup. By all accounts this should be exceptionally simply for Plex, but it’s just one problem after the other.

Half the time, the cover.jpg doesn’t show up properly. Sometimes it fixes itself if I set an Album Artist in the tags for the album’s files, but not always. Sometimes adding it results in a standard Plex image instead of the proper cover until I do another refresh metadata, at which point it suddenly does show up. But not always.

Some albums have tracks by different artists. Why does Plex frequently think the correct solution is to split the album up in up to 20 different albums of 1 track? Especially with my logical setup, it should be pretty obvious it’s a single album. Again, setting an Album Artist seems to do the trick, usually. But that REALLY shouldn’t be necessary.

Sometimes I have multi-disc albums where I have subfolders in the album folder named CD1 or Disc 1, etc. Sometimes that causes issues and causes artwork not to load. But not always. Sometimes moving all the folders to the main album folder and deleting the empty disc subdirectories solves that. But not always.

I don’t know how this is so hard for Plex. I could really use some help. Or rather, I could really use somebody who works on Plex to fix this stuff. I don’t even know how to describe it other than just tossing my frustrations out there and hoping somebody takes notice and can do something with it.

(Note: Please don’t tell me I can easily fix split albums in the Plex web client/etc. I don’t want to have to fix it. I want Plex to just do it right the first time. In theory I should be able to delete my library and recreate it from the same files and have everything show up correctly without having to adjust hundreds of entries by hand.)

There are several ways to go about it:
https://support.plex.tv/hc/en-us/articles/200265296-Adding-Music-Media-From-Folders

Most importantly is getting Artist and Album set correctly in the metadata - I use MP3Tag.

File Structure is important. I use this method because it’s what I began using, it works, so I saw no need to fix what wasn’t broken:

But… what’s really important is what’s in the metadata. You can basically make anything do anything you want:
https://forums.plex.tv/discussion/comment/1346348/#Comment_1346348

As previously indicated you want Album and Artist correct. I choose to embed covers into the metadata - removing all ‘issues’ with Last.fm (my only option as a non-Plex-Passer). You may want to fiddle around with your PP Options, but I can tell you as far as painless music goes it doesn’t get much more pain-free than this:


With the cover embedded.

If you don’t want the cover embedded - here’s the difinitive guide for naming local media assets:
https://forums.plex.tv/discussion/comment/1319703/#Comment_1319703

If you’re trying to get Plex hooked up to draw those covers automatically - I suggest you formulate another plan because that plan is sure to bring you much unhappiness. It only takes a moment to find the correct cover - if you don’t already have it - and another moment to either embed it, or name/place it in the right spot.

This, ultimately will make your life a brighter place in which to live:

It sounds like your embedded tags and local resources are in good shape. If that’s true, make sure Plex is completely configured to prefer embedded metadata. If that’s all correct, and the tags are in good shape, then I’ve found Plex to be extremely reliable when adding new music.

@beckfield said:
It sounds like your embedded tags and local resources are in good shape. If that’s true, make sure Plex is completely configured to prefer embedded metadata. If that’s all correct, and the tags are in good shape, then I’ve found Plex to be extremely reliable when adding new music.

Me too.

I actually enjoy a slight fiddle - to make sure everything is right and embed my artwork, then have it work perfectly the first time, every time. It’s one of the areas where Plex is virtually painless.

Hey guys. I really needed a break from Plex and my game music, so that’s why I haven’t responded.

I appreciate your suggestions and can say that I had already followed most of these. I’m also happy with the MP3tag recommendation - I have been using it for years, and it is amazing and I love it - it is very excellent at what it does. All of my music is properly tagged using MP3tag - I always manually check everything.

Since then I’ve been playing around and trying to work out what’s making Plex tick. I made a new empty standard Music library with “Use embedded tags” enabled, and then put together my own fake album so I would have a fully controlled sample album to test with that I could also upload without dealing with the obvious music copyright issues. You can find the fake album at this link [alternate link]. It’s one of the albums that doesn’t want to show up properly. Neither the cover image nor the background image are displayed correctly.

using the “Personal Media Artists” Agent it displays a standard built-in Plex icon:

using the “last.fm” Agent it displays a built-in default “Various Artists” cover image (it is set to By Artist, but it displays this same issue when set to sort By Title - I was just curious if it might change based on this setting, but no such luck):

The sample album I provided is representative of my videogame music albums insofar as that it has several tracks from different artists, a consistent Album Title, a high-resolution perfectly square cover.jpg image that is usually 1000 by 1000 pixels (sometimes larger, and rarely smaller), and a 350-ish pixel square embedded “Front Cover” cover image in each track, generally no larger than 35kb, with a separate copy stored in the embed.jpg file for my own convenience, and a Full-HD or larger background.jpg image that is always at a 16:9 aspect ratio.

And still it refuses to display the cover, heh. It’s almost amazing if it wasn’t so upsetting.

none of the images ‘at this link’ actually contain images.

If you drag and drop them to a message window I can make this work in 30 seconds.

Hey, that’s a Google Drive quirk. It was the quickest place I could think to upload my fake album. You can just click the download arrow (it’s in the top-right on the desktop browser UI) to download the full .zip with the album folder in it, and the files as I have them arranged. Alternatively, here is another link to the .zip directly.

@dgbonomo said:
with a separate copy stored in the embed.jpg file for my own convenience, and a Full-HD or larger background.jpg image that is always at a 16:9 aspect ratio.

background.jpg will only get you a ‘wallpaper’ (i.e. not a ‘cover’) which is not really used in most newer Plex clients. Only PMP shows it, AFAIK.

For the stand-alone cover art file: you should rename this file to either cover.jpg or folder.jpg
I recommend you to have this one in a higher resolution than what you are usually embedding into files.
Otherwise this won’t be possible:

Here are some details about possible ‘side car’ files for music albums:
https://forums.plex.tv/discussion/comment/1319703/#Comment_1319703

Do you have the ‘Local Media Assets’ agent activated? You need it for all ‘sidecar’ files and embedded meta data.

See this thread where I whipped up a soundtrack library real quick, just to show that it is possible:
https://forums.plex.tv/discussion/comment/1472799/#Comment_1472799

I figured it out…

anyway… this all went pretty good, but I did have to drag the ‘Artist’ image onto the edit window. and the ‘Background’ was there, but only shows if you click the show background image icon (in the white box).

I confess - it took 90 seconds, not 30…:

I had a plate of ribs between me and the keyboard - got it done between sucking the meat off one, before the mouth-full of cole slaw…

:slight_smile:

Okay! Two things to notice here. Two important things!

One is that I don’t have a folder per artist, with subfolders for each album. My reasoning was that they’re all videogame soundtracks, and it makes more sense to be able to see the album titles (and in Explorer, be able to type partial names of the videogame to quickly jump to that album) than to see the artists (which vary wildly and generally speaking aren’t nearly as interesting when searching for a videogame music album to listen to). I wonder if this might cause some of the other weird issues I’ve seen, which is an interesting thought and bears further investigation when I’m not tired and it isn’t almost midnight. (Perhaps this is why Plex strangely splits some of my albums with multiple artists up into multiple albums, which I haven’t been able to reproduce with my own album. I’m not sure.)

Two! Two is the big one. I noticed you’ve set the Album Artist field. I hadn’t. This actually fixes the cover and background image problem completely. I placed the folder directly from my zip file into the top-level directory that Plex scans for that library, changed just the Album Artist tag, performed a library scan, and it just worked. All it took was changing that single tag from an empty field to… well, anything else. I set it to derpaderp, because I could. Which is kind of bizarre, that this would fix that. A lot of videogame music soundtracks don’t really have a singular album artist, which is why I’ve often left that field empty, but I suppose I could just set the tag to “Various Artists” in those situations.

I think this probably bears fixing, somewhere and somehow, in Plex? I’m not entirely sure, but it would seem so. It doesn’t make a lot of sense to me that leaving the Album Artist tag blank would make the cover image not show up. Should I report this somewhere somehow? Thoughts?

While we’re on the subject, and this might be for @OttoKerner specifically (but anyone should feel free to chip in): surely if I have a cover.jpg image it should prefer that over the embedded Front Cover image, right? It makes far more sense to have a single high-quality and high-resolution (read: large file size) cover.jpg image file, rather than embedding that massive file into each and every track (which would take up a LOT of space VERY quickly). I’ve always assumed that Plex worked under similar principles (in that it would prefer a larger cover.jpg image over smaller embedded files) but now I’m suddenly not so sure anymore, so I’d love some clarification on that.

@dgbonomo said:
Okay! Two things to notice here. Two important things!

One is that I don’t have a folder per artist, with subfolders for each album.

Plex loves albums. It doesn’t cope well if there are no albums.

A lot of videogame music soundtracks don’t really have a singular album artist, which is why I’ve often left that field empty, but I suppose I could just set the tag to “Various Artists” in those situations.

See my linked solution in my example soundtrack library. I used the the ‘game universe’ as album artist.

surely if I have a cover.jpg image it should prefer that over the embedded Front Cover image, right? It makes far more sense to have a single high-quality and high-resolution (read: large file size) cover.jpg image file, rather than embedding that massive file into each and every track (which would take up a LOT of space VERY quickly).

Plex did not do this for quite a while. I filed that exact issue and I think in the newer releases it actually prefers the sidecar folder.jpg over the embedded album art.
Any way else just wouldn’t make sense.

Thanks for answering my cover.jpg vs embedded metadata question! Good to know that a single good cover.jpg will do the trick. I mostly kept embedding downscaled sub-35kb 350px versions into each track for compatibility with other applications. One clarification on the way I sort my music as I should have been more clear on this: I do have folders for albums, but not folders for artists. Here’s a disappointing example just for reference:

If this does end up causing issues, creating an single “all artists” folder and dumping everything into that isn’t a huge issue, although it might introduce some issues I’ve had with some with the occasional album with stupidly long track names and Windows or NTFS filesystem limitations on path lengths, but that’s easily fixed by making the filenames shorter if it does arise.

I’ll investigate the “album mysteriously gets split into multiple albums by Plex” issue another time. Thanks for all the help!

@dgbonomo said:
I do have folders for albums, but not folders for artists. Here’s a disappointing example just for reference:

If you use the part before the first hyphen in the folder name as ‘AlbumArtist’ this should work, actually.
(Set it as AlbumArtist in the files’ meta tags, I mean.)

I’ll investigate the “album mysteriously gets split into multiple albums by Plex” issue another time.

When that happens, it is almost always due to missing meta tags (track number, disc number)
or due to meta tags having different content which rather should be uniform across an album (Album Artist, Album Ttitle).

By the way, it doesn’t look like Plex is using the cover.jpg image at all. It’s using the embedded metadata instead. I was uncomfortable not knowing for sure whether or not it was using the highest resolution source, and it looked like it wasn’t, so I made another tweak to my fake album. I changed the embedded front cover image to a 50x50 pixel image, which looks as hilariously bad as you would expect. It also made it obvious that Plex was favouring the embedded image over the 1000x1000 pixel high-quality cover.jpg image, because this is what it looked like:

So… partially back to square 1. Maybe square 2? Certainly not where I wanted to be though. :frowning:

Is the cover.jpg available for selection when you ‘edit’ the album, under the ‘Poster’ tab?
Have you tried with a folder.jpg instead?

There is actually also a way with a scans subfolder.

Album Title /
   1. Track Artist - Track Title.mp3
   Scans /
      Front.jpg

Front.jpg or Booklet Front.jpg might get selected as default when present.

I’m sorry, it looks like Plex is being Plex. I ran four tests, renaming the cover image each time. After every test, I would move the files out of the library directory, force a rescan, empty the trash, clean bundles, move the files back, and force a rescan.

cover.jpg: high-quality image file ignored, low-quality metadata image used as cover
poster.jpg: high-quality image file used, low-quality metadata image ignored
folder.jpg: high-quality image file used, low-quality metadata image ignored
cover.jpg: high-quality image file used, low-quality metadata image ignored

The first time it ignored the cover.jpg (as seen on the partial screenshot in my previous post). The second time I used a cover.jpg image it used the cover image instead of the embedded metadata. I’m really not sure why.

Even weirder, after the above test, I started to just make tiny changes to the cover.jpg and doing a Refresh Metadata on the album alone. I would make the changes using MS Paint, and just store as a JPG (I realise this is hell on the picture quality, but since this is just a test to see what happens and quality doesn’t matter, that’s fine). All of the changes were small, such as just adding a line, some freehand letters. I’ve also tried some larger changes, such as flipping the image horizontally and vertically, rotating it. I also tried opening it in a more advanced tool and doing things such as swapping RGB channels. The results were completely unpredictable. Sometimes the resulting cover.jpg would work, other times it wouldn’t. I would really apprecaite some thoughts on this. It’s very weird.

After changing the file itself, I think a ‘Refresh Metadata’ of the album should be enough.

It is, as I described above. That’s what I did for the second test where I changed the image and it randomly either was or wasn’t chosen over the embedded metadata. I only did the plex dance to see if it would make a difference (it didn’t). Still no clue why the cover.jpg randomly is or isn’t used after Refresh Metadata.

(EDIT): I’ve spent the past five hours trying to figure out what the heck is causing this issue, and from one moment to the next the entire issue spontanously disappeared – or rather, I can suddenly no longer produce it, which is completely baffling… but I guess that means it’s a problem for another time. o.O