Metadata agents for exported XBMC library

@pourley
Maybe you could pm me a full debug log?

@SlrG
ok,I guess this may be related to language, so I did some tests.
I guess this may be related to language, so I did some testing.
The result is:

  1. Global support for English, not Chinese, Japanese (other languages not tested);
  2. The specified URL in nfo supports English, Chinese, and Japanese (other languages have not been tested);
    So I want to use global support to use only English composition actor names?

<movie>
  <title>Silicon.Valley</title>
  <outline>In the high-tech gold rush of modern Silicon Valley, the people most qualified to succeed are the least capable of handling success. Partially inspired by Mike Judge’s own experiences as a Silicon Valley engineer in the late ‘80s, Silicon Valley is an American sitcom that centers around six programmers who are living together and trying to make it big in the Silicon Valley.</outline>
  <poster>Silicon.Valley.jpg</poster>
  <thumb>Silicon.Valley.jpg</thumb>
  <fanart>Silicon.Valley-fanart.jpg</fanart>
  <actor>
    <name>Thomas Middleditch</name>
    <role>Richard Hendriks</role>
    <thumb>http://xxx.com/actors/Thomas_Middleditch</thumb>
  </actor>
  <actor>
    <name>Thomas Middleditch2</name>
  </actor>
  <actor>
    <name>马丁斯塔尔</name>
    <thumb>https://image.tmdb.org/t/p/w600_and_h900_bestv2/sYKZBDsmDIhVY0juiwSDfv2RnPR.jpg</thumb>
  </actor>
  <actor>
    <name>马丁斯塔尔2</name>
    <thumb>http://xxx.com/actors/马丁斯塔尔2.jpg</thumb>
  </actor>
  <actor>
    <name>Kana Momonogi</name>
  </actor>
  <actor>
    <name>桃乃木かな</name>
    <thumb>http://xxx.com/actors/桃乃木かな.jpg</thumb>
  </actor>
  <website>http://www.hbo.com/silicon-valley</website>
</movie>

Logs:

2018-05-26 10:30:58,678 (7fc273a23700) :  DEBUG (sandbox:19) - Removing empty XML tags from movies nfo...
2018-05-26 10:30:58,679 (7fc273a23700) :  DEBUG (sandbox:19) - Removing empty XML tags from movies nfo...
2018-05-26 10:30:58,680 (7fc273a23700) :  DEBUG (sandbox:19) - Empty XMLTags removed: None
2018-05-26 10:30:58,681 (7fc273a23700) :  DEBUG (sandbox:19) - No <sorttitle> tag in /volume2/Media/TV/Test/Silicon.Valley.S04E10.Server.Error.1080p.AMZN.WEBRip.DD5.1.x264-NTb[rartv]/Silicon.Valley.nfo.
2018-05-26 10:30:58,682 (7fc273a23700) :  DEBUG (sandbox:19) - Reading releasedate tag...
2018-05-26 10:30:58,683 (7fc273a23700) :  DEBUG (sandbox:19) - No releasedate tag found...
2018-05-26 10:30:58,684 (7fc273a23700) :  DEBUG (sandbox:19) - Reading premiered tag...
2018-05-26 10:30:58,684 (7fc273a23700) :  DEBUG (sandbox:19) - No premiered tag found...
2018-05-26 10:30:58,685 (7fc273a23700) :  DEBUG (sandbox:19) - Reading date added tag...
2018-05-26 10:30:58,686 (7fc273a23700) :  DEBUG (sandbox:19) - No dateadded tag found...
2018-05-26 10:30:58,686 (7fc273a23700) :  DEBUG (sandbox:19) - Fallback to year tag instead...
2018-05-26 10:30:58,687 (7fc273a23700) :  DEBUG (sandbox:19) - Default setting forces outline before plot...
2018-05-26 10:30:58,688 (7fc273a23700) :  DEBUG (sandbox:19) - Reading old rating style failed. Trying new Krypton style.
2018-05-26 10:30:58,690 (7fc273a23700) :  DEBUG (sandbox:19) - No enhanced set tag found...
2018-05-26 10:30:58,691 (7fc273a23700) :  DEBUG (sandbox:19) - No set tag found...
2018-05-26 10:30:58,692 (7fc273a23700) :  DEBUG (sandbox:19) - Added Collection(s) from tags.
2018-05-26 10:30:58,692 (7fc273a23700) :  DEBUG (sandbox:19) - Trying to read <durationinseconds> tag from .nfo file...
2018-05-26 10:30:58,693 (7fc273a23700) :  DEBUG (sandbox:19) - Fallback to <runtime> tag from .nfo file...
2018-05-26 10:30:58,694 (7fc273a23700) :  DEBUG (sandbox:19) - No Duration in .nfo file.
2018-05-26 10:30:58,700 (7fc273a23700) :  DEBUG (sandbox:19) - success setting global actor photo: http://xxx.com/actors/Thomas_Middleditch.jpg
2018-05-26 10:30:58,707 (7fc273a23700) :  DEBUG (sandbox:19) - success setting global actor photo: http://xxx.com/actors/Thomas_Middleditch2.jpg
2018-05-26 10:30:58,713 (7fc273a23700) :  DEBUG (sandbox:19) - failed setting global actor photo: http://xxx.com/actors/马丁斯塔尔.jpg
2018-05-26 10:30:58,714 (7fc273a23700) :  DEBUG (sandbox:19) - linked actor photo: https://image.tmdb.org/t/p/w600_and_h900_bestv2/sYKZBDsmDIhVY0juiwSDfv2RnPR.jpg
2018-05-26 10:30:58,721 (7fc273a23700) :  DEBUG (sandbox:19) - failed setting global actor photo: http://xxx.com/actors/马丁斯塔尔2.jpg
2018-05-26 10:30:58,722 (7fc273a23700) :  DEBUG (sandbox:19) - linked actor photo: http://xxx.com/actors/马丁斯塔尔2.jpg
2018-05-26 10:30:58,729 (7fc273a23700) :  DEBUG (sandbox:19) - success setting global actor photo: http://xxx.com/actors/Kana_Momonogi.jpg
2018-05-26 10:30:58,735 (7fc273a23700) :  DEBUG (sandbox:19) - failed setting global actor photo: http://xxx.com/actors/桃乃木かな.jpg
2018-05-26 10:30:58,736 (7fc273a23700) :  DEBUG (sandbox:19) - linked actor photo: http://xxx.com/actors/桃乃木かな.jpg
2018-05-26 10:30:58,737 (7fc273a23700) :  INFO (__init__:822) - ---------------------
2018-05-26 10:30:58,737 (7fc273a23700) :  INFO (__init__:823) - Movie nfo Information
2018-05-26 10:30:58,738 (7fc273a23700) :  INFO (__init__:824) - ---------------------
2018-05-26 10:30:58,738 (7fc273a23700) :  INFO (__init__:826) - ID: com.plexapp.agents.xbmcnfo://7629954268701277377?lang=xn
2018-05-26 10:30:58,738 (7fc273a23700) :  INFO (__init__:830) - Title: Silicon.Valley
2018-05-26 10:30:58,739 (7fc273a23700) :  INFO (__init__:834) - Sort Title: None
2018-05-26 10:30:58,739 (7fc273a23700) :  INFO (__init__:838) - Year: 2014
2018-05-26 10:30:58,740 (7fc273a23700) :  INFO (__init__:842) - Original: None
2018-05-26 10:30:58,740 (7fc273a23700) :  INFO (__init__:846) - Rating: None
2018-05-26 10:30:58,740 (7fc273a23700) :  INFO (__init__:850) - Content: NR
2018-05-26 10:30:58,741 (7fc273a23700) :  INFO (__init__:854) - Studio: None
2018-05-26 10:30:58,741 (7fc273a23700) :  INFO (__init__:858) - Premiere: 2014-01-01
2018-05-26 10:30:58,741 (7fc273a23700) :  INFO (__init__:862) - Tagline: None
2018-05-26 10:30:58,742 (7fc273a23700) :  INFO (__init__:866) - Summary: In the high-tech gold rush of modern Silicon Valley, the people most qualified to succeed are the least capable of handling success. Partially inspired by Mike Judge’s own experiences as a Silicon Valley engineer in the late ‘80s, Silicon Valley is an American sitcom that centers around six programmers who are living together and trying to make it big in the Silicon Valley.
2018-05-26 10:30:58,742 (7fc273a23700) :  INFO (__init__:869) - Writers:
2018-05-26 10:30:58,742 (7fc273a23700) :  INFO (__init__:874) - Directors:
2018-05-26 10:30:58,743 (7fc273a23700) :  INFO (__init__:879) - Genres:
2018-05-26 10:30:58,743 (7fc273a23700) :  INFO (__init__:884) - Countries:
2018-05-26 10:30:58,743 (7fc273a23700) :  INFO (__init__:889) - Collections:
2018-05-26 10:30:58,744 (7fc273a23700) :  INFO (__init__:896) - Duration: 160 min
2018-05-26 10:30:58,744 (7fc273a23700) :  INFO (__init__:899) - Actors:
2018-05-26 10:30:58,744 (7fc273a23700) :  INFO (__init__:902) -         Thomas Middleditch > Richard Hendriks
2018-05-26 10:30:58,745 (7fc273a23700) :  INFO (__init__:908) - ---------------------
2018-05-26 10:30:58,745 (7fc273a23700) :  INFO (__init__:902) -         Thomas Middleditch2 > Unknown Role 1
2018-05-26 10:30:58,745 (7fc273a23700) :  INFO (__init__:908) - ---------------------
2018-05-26 10:30:58,746 (7fc273a23700) :  INFO (__init__:902) -         马丁斯塔尔 > Unknown Role 2
2018-05-26 10:30:58,746 (7fc273a23700) :  INFO (__init__:908) - ---------------------
2018-05-26 10:30:58,746 (7fc273a23700) :  INFO (__init__:902) -         马丁斯塔尔2 > Unknown Role 3
2018-05-26 10:30:58,747 (7fc273a23700) :  INFO (__init__:908) - ---------------------
2018-05-26 10:30:58,747 (7fc273a23700) :  INFO (__init__:902) -         Kana Momonogi > Unknown Role 4
2018-05-26 10:30:58,747 (7fc273a23700) :  INFO (__init__:908) - ---------------------
2018-05-26 10:30:58,748 (7fc273a23700) :  INFO (__init__:902) -         桃乃木かな > Unknown Role 5
2018-05-26 10:30:58,748 (7fc273a23700) :  INFO (__init__:908) - ---------------------
2018-05-26 10:30:58,755 (7fc273a23700) :  DEBUG (model:229) - Serializing to /volume1/Plex/Library/Application Support/Plex Media Server/Metadata/Movies/b/4abecab7a26b3a85f25e97ea526a2a825c847fc.bundle/Contents/com.plexapp.agents.xbmcnfo/Info.xml
2018-05-26 10:30:58,757 (7fc273a23700) :  DEBUG (runtime:88) - Sending packed state data (107 bytes)
2018-05-26 10:30:58,757 (7fc273a23700) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes

@pourley
I’ll try to replicate the problem on my system and will try to fix it. Thank you for your very helpful testing to find the cause of the problem. :slight_smile:

@SlrG
Thank you, if this problem can be resolved please @me. So I don’t have to add a thumb to every actor.

Is it possible to get the Plex Movie agent to appear as an option under the XBMC agent? In previous posts i’m seeing that XBMC can now appear under The Move Database agent and the Plex Movie agent, but can I get Plex Movie under XBMC by some code modification or other route? Thanks.

@donmuraco said:
Is it possible to get the Plex Movie agent to appear as an option under the XBMC agent? In previous posts i’m seeing that XBMC can now appear under The Move Database agent and the Plex Movie agent, but can I get Plex Movie under XBMC by some code modification or other route? Thanks.

Not sure why you’d need it but add

        'com.plexapp.agents.themoviedb',
        'com.plexapp.agents.imdb'

to the bottom of where accepts_from = [ is at line 83 in Plex Media Server\Plugins\XBMCnfoMoviesImporter.bundle\Contents\Code\__init__.py

Again i’m not sure why you’d need it as you can just turned off the stuff you don’t need as is

Thanks @anothername. I’m wanting to change to the Plex Movie agent without having to re-create my library. Existing movie metadata is apparently tied to the original agent which in my case is XBMC.

@elan said:
Very nice, thanks for writing it!

Still think this should be integrated into plex by default, just as Emby has.

@Afullmark said:
Still think this should be integrated into plex by default, just as Emby has.

Pretty sure this has been requested many times in the past but as long as there is a working solution like this agent i doubt native support for nfos will be a thing

And does this affect either of the plex agents in what they usually fetch; I found issues with actors not being pulled etc last time i tried the configuration you have.

I’ve never had an issue with it, all the actor info is in the nfo files the Plex default agents are mostly there as backups and for extras.

Hi everyone,

I recently switched back to managing my metadata manually, and found this plugin to allow me to use the nfo files generated by Media Companion to populate Plex. However, I’m having an issue when using the XBMCnfo Agent.

It is correctly pulling all of the info for the movies from the nfo files, but it is also creating a collection in Plex for every single tag listed in the files. Is there any way to prevent this, other than deleting the tags from the nfo files? I want to keep the tags available, but not create collections for them.

1 Like

I’ve been using the NFO importer agents to manage my metadata and just noticed that my collection of the V/H/S movies, entitled ‘V/H/S Collection’ is listed multiple times in the movie list. It shows up as independent ‘V’, ‘H’, and ‘S’ collections consisting of the movies. When viewing the actual movies V/H/S and V/H/S/2 it shows they belong to the ‘V’ collection. The movie are correctly parsed individually, just not in the collection name.

This is the collection in Ember Media Manager where I set it up

This is how the movies are displayed individually, with the title displayed correctly, you can see at the bottom that it shows it as part of ‘V Collection’

When viewed in the movie list you have multiple entries (There is also one under ‘S’ but I felt that another picture would be unnecessary)


When you view the indivual letter collections you see them as this


I had assumed this error was due to a problem with Plex itself but per the suggestion of a mod in my original post I have crossposted to here in case this is an issue with the nfo importer.

Can you post the nfo for one of those movies? I can see by the version number on Ember that you are using an older version, newer ones can be found here. Also in the Advanced tab what do you have Collections set to?
DpLfAbe
I’ve tested and works fine here


DLnFEnm

Hello
I’m mounting un second plex media server, for my daughters.
Like my first PMS, i want to use XBMCnfoMovieImporter, it’s was great and without problems

But now, for the same movies ( and nfo and art files ) Plex don’t show art files, but i can show them if I edit the file , with the pencil icon, ang go to “poster”

I compared the twos PMS to be sure to have the same options, but i din’t find any difference
“Refresh medata” don’t change anything

HAve you an idea ?

This is how the movies are shown, with a screenshot
Capture2

If I edit a movie, PLEX knows the poster

Thanks

I’ve the same problem Skopin.

As a user of tinyMediaManager to generate .nfo in the same folder of the movies / series that I then import from Plex using the plugin XBMCnfoMoviesImporter.bundle I have detected the same bug you reported: both the collections (set) and the tags (tags) are imported into the same field of Plex collections.

I think the solution would be simple if line 687 of the XBMCnfoMoviesImporter.bundle / Contents / Code / __ init__.py file was modified in the sense of adding the information from the nfo tags field to the PLEX tags field; metadata.tags.add

It would probably also be necessary to add the equivalent to lines 890-893 of said file to contemplate the previous modification.

I hope anyone can evaluate this because I’m not a programmer and I’m not sure that solution proposed is feasible.

if you do “Fix Match” and let it find the correct info, if you have it setup so that your main agent is XBMC it will find the match and populate the posters based off your nfo/folder. It happens to me all the time but simply doing that small change will generate the art for you.

That doesn’t work because Plex thinks it already has the poster in the form of the screenshot thumbnail. So fix match using just the XBMCnfoMovieImporter agent does nothing. I think this is a Plex issue because it does the same thing when I use the Local Media Assets agent and remove XBMCnfoMovieImporter from the equation completely.

Thumbnails are being created and used as the default instead of the local poster.jpg and fanart.jpg. They are being added to the library but are ignored unless selected manually.

weird because i have that same issue when i move a movie into my watched folder, plex will auto add it and use a screenshot, just like your image, however when i build my nfo and grab the posters, i can use fix match and it corrects the issue and will display the proper poster art/cover art

Como se hace eso?