Metadata agents for exported XBMC library

@slowmoe

I have no proof, and I don’t want to start an unfounded rumor, but I suspect it’s something to do with the way Plex changed the way it displays and sorts information, particularly for TV libraries… Coincidentally, the two glitches showed up at the same time.
https://forums.plex.tv/discussion/comment/1321926/#Comment_1321926 suggests a fix for one of the problems is upcoming (sort order) I’m not sure anyone has acknowledged the image issue is related, but it seems likely to me.

You might get more insight here:
https://forums.plex.tv/discussion/248783/plex-ordering-by-airdate-instead-of-by-episode-number where one of the Ninjas is pursuing the matter, but he seems to have forgotten the missing poster issue. I have mentioned and re-mentioned several times in several threads that it’s part of the problem too, but I haven’t had any bites.

Basically, if I understand the explanations (and I probably don’t), Plex gets lost if another agent is used for a TV show, and it tries to use the default one somehow, and screws things up. It’s all tied to the “original available” date and how Plex wants to use it in the DVR.

So I’ve just checked with the latest update everything seems ok except for artwork… which is pretty important.

Whats the best way to tell the Plex devs?

Perhaps this is a dumb question but why not remove the whole support for artwork from the xbmc agents entirely? Doesn’t plex’s local media agent do the same job. I always end up with doubles of the artwork as I need the local media agent to do some stuff that the xmbc agent doesn’t cover (local theme tunes).

I have sport which isn’t allowed on TVDB so I use nfos to add it to plex.

There is no alternative for me… I’ve spent an insane amount of hours writing the nfos and now it looks like I’m not going to have any artwork…

Please Plex devs… I would love to have it fixed.

@maiade:
Hmm… Not a bad idea I think. I can try to make it user selectable. I don’t think it will solve the no series artwork problem, but it will prevent the double artwork entries. Will take some time however.

It doesn’t look like the Plex Local Media Agent (TV) looks for the same filenames and/or locations of some posters and what not that Kodi/XBMC uses for their naming conventions and locations.

https://support.plex.tv/hc/en-us/articles/200220717

So, this isn’t a solution for the broken season posters as SlrG noted but I can see the benefit of having an option that would turn off the importing of the common files between the two agents or check boxes to turn on or off each type (over kill maybe) could be handy.

@slowmoe said:
It doesn’t look like the Plex Local Media Agent (TV) looks for the same filenames and/or locations of some posters and what not that Kodi/XBMC uses for their naming conventions and locations.

https://support.plex.tv/hc/en-us/articles/200220717

So, this isn’t a solution for the broken season posters as SlrG noted but I can see the benefit of having an option that would turn off the importing of the common files between the two agents or check boxes to turn on or off each type (over kill maybe) could be handy.

Ah, being selfish it would work for me. I started pure plex then realised the amount of editing I was doing to the records correcting stuff. I then got worried what would happen to my edits if I had to do a rebuild and discovered nfo files. I use MediaElch which I had to hack a little bit as it did not quite do what I wanted (no release date for films). The result is that when I started using nfo files and MediaElch I set it up to use the plex image naming standards and locations.

I guess it means I am safe to update as the Plex Local Media Agent (TV) should sort out the season posters for me.

On a different note the other thing I did was write a basic scanner that looks at the nfo files to see if there is a displayseason and/or displayepisode tag and uses those to set the season and episode values. It is only any good if all your stuff has nfo files as I was too lazy to write anything more robust and OCD enough that all my stuff has nfo files. That way I can use TVDB but change the order of the episodes to suit myself, useful for shows like Babylon 5, UFO and others where neither the aired date nor the dvd order are the logical viewing order.

@maiade:
I tried to implement what you asked for in the XBMCnfoMoviesImporter first. Interestingly it fails to pull posters if I set the agent to don’t do it and enable the local media assets one, which in theory should do it instead. I’ll try again with the TV agent tomorrow. Maybe you want to take a look or try it yourself and have an idea what is going wrong?

Please try the test version from here:
https://github.com/SlrG/XBMCnfoMoviesImporter.bundle/archive/localmedia.zip

@SlrG said:
@maiade:
I tried to implement what you asked for in the XBMCnfoMoviesImporter first. Interestingly it fails to pull posters if I set the agent to don’t do it and enable the local media assets one, which in theory should do it instead. I’ll try again with the TV agent tomorrow. Maybe you want to take a look or try it yourself and have an idea what is going wrong?

Please try the test version from here:
https://github.com/SlrG/XBMCnfoMoviesImporter.bundle/archive/localmedia.zip

@SlrG worked fine for me. You just have to remember to go to settings > server > agents and turn local media assets (movies) on as it is off by default. Ideally before you create the library (if you do it after it is a lot more work as it will pull the images but not use them) and it works like a dream.

@maiade:
Of course I did enable the local media assets agent. Didn’t work for me anyway. :slight_smile: But if it works for you, that might be a minor hiccup on my side. I could find no logic reason why it didn’t work even through it should. But it was late yesterday and I was very tired. I’ll modify the tv agent, too and will ask you test that, too. Thank you for trying it out. :slight_smile:

@maiade:
The changes in the XBMCnfoTVImporter agent are ready. Please download the newest version and give it a whirl with disabled artwork support in the agent and enabled local media assets one. Its funny, that plex’ own local media assets agent fails to set the correct season poster, too. :slight_smile:

@SlrG:

Tried the new version of the XBMCnfoTVImporter agent. Unlike the Movies Importer I had no luck.

I created a small test TV Shows directory

The local media agent logs says it finds them but for some reason they do not get added. It fails both at the season level and the episode level. It does find and add the show level poster, it uses that for the season. Episode image is auto generated from the video.

Using the same small test directory I created another library this time with The TVDB agent and local media agent. It works. As the local images in the test directory are not the same as those from TVDB I know that the local asset agent is working ok this time. Unfortunately this means the plex team will not see a problem.

I looked a the dates for the TVDB and the local media agents on github and they haven’t had a recent change. When I get a clear head I will have another go at working out what is going on.

Okay. Thank you for testing. I can’t really understand why it works with the TVDB agent and not the XBMCnfo one.

I tried it out as well and no luck. Although my artwork is just named the same as the file so I’m not sure if thats how Plex wants it.

Really wish Plex devs would have a look…

Looks like we are not the only ones with this problem. See forums.plex.tv/discussion/250818/custom-tv-show-agent-season-posters-and-episode-thumbs-not-populated

I updated to the latest XBMCnfoTVImporter.bundle and the agent is no longer working. Season Posters and Episode Thumbs no longer show up instead newer thumbs are being generated. When I Unmatch a TV Show, all the Season Posters and Episode Thumbs stored on the disk show up again minus the metadata and other information. When I try to Match a TV Show by going under Search Options, I get the message No matches found. I’m guessing the agent isn’t working because these shows were working just fine previously.

My XBMCnfoTVImporter agent order:

  • Plex Theme Music
  • Local Media Assets (TV)
  • XBMCnfoTVImporter

Appreciate any help.

EDIT: I’ve tried changing XBMCnfoTVImporter agent order by placing it on top and also played with the Disable Agent Artwork Support option and it hasn’t rectified the issues.

XBMCnfoTVImporter Debug Log: pastebin.com/t7Lh55zR

@vevoo said:
I updated to the latest XBMCnfoTVImporter.bundle and the agent is no longer working. Season Posters and Episode Thumbs no longer show up instead newer thumbs are being generated. When I Unmatch a TV Show, all the Season Posters and Episode Thumbs stored on the disk show up again minus the metadata and other information. When I try to Match a TV Show by going under Search Options, I get the message No matches found. I’m guessing the agent isn’t working because these shows were working just fine previously.

My XBMCnfoTVImporter agent order:

  • Plex Theme Music
  • Local Media Assets (TV)
  • XBMCnfoTVImporter

Appreciate any help.

EDIT: I’ve tried changing XBMCnfoTVImporter agent order by placing it on top and also played with the Disable Agent Artwork Support option and it hasn’t rectified the issues.

XBMCnfoTVImporter Debug Log: pastebin.com/t7Lh55zR

Hello Vevoo,

Read the posts since 14 november and you will discover that the problem is from plex 1.2.8, the problem don’t come from the agent but directly from Plex, everybody are waiting that the problem is solved because all third party agent are affected. At this time the only solution is to revert back to Plex 1.2.7

The updated XBMC agent is a try to resolve the problem but if your read latests posts you will discover that the problem is not solved with this version too.

We are waiting answers from Plex but they don’t seems to be very receptives at our problems.

Come back often and read latests posts to follow the evolution of the situation.

Thank you @“Keitaro Blade”, I went back to PMS 1.2.7 and everything is working again. I’m using docker which updates Plex Media Server on restart so I didn’t notice the update.

Hi, i am new here. I am trying to went from Kodi to Plex. But before i pay for the premium version i try to import my Kodi database to Plex but without any success. Each aplication that i have found and should work is for iOS but i have all on Windows. Please can help someone to me? Is there any WINDOWS aplication/agent that can read data that i have exported to each movie from Kodi? Thank you

Hello supra66,

At this time that the third’s party agent don’t work anymore with Plex 1.3.3 (work only until Plex 1.2.7). We are waiting informations from Plex’s developpers that have broke something since 14 november.