Metadata agents for exported XBMC library

supplemental - loading in 800 odd films took all afternoon, and night and even then it missed lots out. I think I will go back to a vanilla XBMCnfoImporter as I am not convinced that the plex extras are that important to me. I did spot some code in the PlexMovies agent that references images for ratings so will have a look at that. My only issue there is that mediaelch uses the basic ratings tag so it doesn’t indicate where the rating is from.

@SlrG, @orbtwin-plex

To get the IMDb logo to appear before the rating you have to use:

                metadata.rating = nfo_rating
                metadata.audience_rating = 0.0
                metadata.rating_image = 'imdb://image.rating'
                metadata.audience_rating_image = None

rather than just

                metadata.rating = nfo_rating

this does assume that you use the IMDb ratings could not find a rating_image value for the Movie Database. I tried without the metadata.audience elements but that didn’t seem to work.

Hi SlrG, just a quick thank you, havent been in here for a good few months, actor thumbnails now added, beautiful, worked like a charm.

I’m glad it is working for you. There are still bugs to fix and things to improve, but sadly I have no time work on the agents at the moment due to real life circumstances. Sadly it will stay this way for the foreseeable future. Pull requests from anybody willing to help are welcome. :slight_smile:

Could you please add artists nfo importer for music as i have Kodi perfect nfo files for music artists wish to import to plex

@mohamedselim
It might be possible, but I dont’t have the time. Sorry. Maybe you could have a look at it yourself. The source code of the agents is on github.

Thanks to everyone for this thread! I’ve been editing metadata in Emby and bringing it into Plex and everything’s working perfectly! Except…

I can’t for this life of me get Specials to show in the TV section. I’ve tried renaming folders, renaming video files, nothing’s worked. I’m sure this is answered something in this thread, but can anyone point me in the right direction?

Thanks!

@mdk758 can you give some example names of folders and files? Specials work fine for me using
Blackadder
… Season 00
… Blackadder - s00e01 - The Cavalier Years

as per https://support.plex.tv/articles/200220687-naming-series-season-based-tv-shows/

Thanks for that Maiade, that’s sorted it! I don’t think I was using the proper file name conventions. It didn’t matter on my other video files, but it seems the specials have to be named correctly for some reason. Thanks again!

I’ve been using the movie importer for a while. Only recently I needed to import movie collections/sets into Plex but can’t figure out how to make it work. I’m using the following in my nfo file:

  <set>
    <name>MySetName</name>
    <overview>MySetOverview</overview>
  </set>

Can some please advise?

@SlrG probably has to add support for it into the plugin… Since it hasn’t been updated in awhile and he probably didn’t know plex added support for collections.

@SirGio
At the moment only <set>MySetName</set> is supported. But as Kodi now supports your set example, I’ll try to add support for it to the agents.

Does anybody know, if plex does display the set overview? If so, I’ll have to find the correct field to put the data into.

It does



But i can’t seem to find anything like metadata.summary for collections

@SlrG said:
@SirGio
At the moment only <set>MySetName</set> is supported. But as Kodi now supports your set example, I’ll try to add support for it to the agents.

Does anybody know, if plex does display the set overview? If so, I’ll have to find the correct field to put the data into.

Probably worth looking at the plex moviedb agent for answers. Any chance of adding in support for loading of a collection poster from local filestore too?

I was able to get it working. Not sure what fixed it, I was testing many things simultaneously. See below sample nfo and screenshot.

<?xml version="1.0" encoding="UTF-8"?>
<movie>
  <title>Core Focus</title>
  <year>2015</year>
  <set>
    <name>Pilates with Kelly Carthy</name>
    <overview></overview>
  </set>
  <releasedate>2015-05-25</releasedate>
  <mpaa>Rated PG-13</mpaa>
  <certification>USA:PG-13</certification>
  <outline>Everything starts with a strong core. Whether you are working your legs, your arms, running a marathon or surfing some serious waves, without core strength your performance is limited and you are prone to injury. Good core strength will support your whole body in moving fluidly and help to prevent injury by creating a strong center. When our center is strong we feel grounded, balanced and in charge.
Benefits:
Increases core strength
Improves body awareness
Improves mobility
</outline>
  <plot>Everything starts with a strong core. Whether you are working your legs, your arms, running a marathon or surfing some serious waves, without core strength your performance is limited and you are prone to injury. Good core strength will support your whole body in moving fluidly and help to prevent injury by creating a strong center. When our center is strong we feel grounded, balanced and in charge.
Benefits:
Increases core strength
Improves body awareness
Improves mobility
</plot>
  <genre>Exercise</genre>
  <genre>Advanced</genre>
  <genre>15 mins and under</genre>
  <language code="en">English</language>
  <studio>FMTV</studio>
  <studios>
    <studio>FMTV</studio>
  </studios>
  <actor id="">
      <name>Kelly Carthy</name>
  </actor>
</movie>

One last thing I would like to accomplish is to manage the cast pictures. After some research, it seems is just not possible to do it as a local media asset. Does anyone have a workaround for this?

@SirGio said:
One last thing I would like to accomplish is to manage the cast pictures. After some research, it seems is just not possible to do it as a local media asset. Does anyone have a workaround for this?

Does this not work for you?

<actor>
  <name>Michael Fassbender</name>
  <role>David / Walter</role>
  <thumb>http://image.tmdb.org/t/p/original/hvtyvcLd3hqRiYECH0bP9IJXCX2.jpg</thumb>
</actor>

@SirGio said:
One last thing I would like to accomplish is to manage the cast pictures. After some research, it seems is just not possible to do it as a local media asset. Does anyone have a workaround for this?

You can do this but it does take a bit of putting together. You need to make the local media asset available via a web server. Then you need to edit the library advanced settings, at the end you will find ‘actor thumb location’. If you have all the actor images in a single directory then set ‘actor thumb location’ to global, if they are in the individual folders then set it to local. Then set ‘path to movie/tv show library or global actor folder’ to http://webserveraddress/accesspath/ the http could be https, webserveraddress and accesspath need to be replaced with the appropriate values.

It has to be done in this convoluted way because plex will only take an http(s) url as a valid value. So unless you want to be able to edit the actor thumbs or be able to add your own where they are not available then it is easier to just use the urls for tmdb or thetvdb as shown by @anothername.

Also note that plex only stores one url for each actor not one for each role and that the last one in wins so if an actor has more than one entry you can get odd looking results. This can be annoying for TV Shows in particular as thetvdb contributors tend to add actor images that are in character.

@anothername and @maiade thanks for the tips. If that’s the alternative I’m better doing it as shown by @anothername which does work for me. I think I’ll store my cast pics in google drive imgur.com and then add the URL to all the NFOs via script. Thank you, both!

Update. Google drive is not good for that purpose because even after making the pictures public, the URL might change over time. I settled for imgur.com and you can also use this service if you don’t want to create an account.

Looking through the plex stock agents I can see no chance to import the overview into the summary field at the moment. The plex devs would need to enable this field to be filled by agents.