Jump to content


Photo

Metadata agents for exported XBMC library

posters

  • Please log in to reply
763 replies to this topic

#741 SlrG

SlrG

    Dedicated Member

  • Members
  • PipPipPip
  • 237 posts

Posted 14 May 2015 - 11:08 AM

Hmm... Please post a screenshot of the full path of the bundles, so I can see if all files are where they belong. Also if I remember correctly for older versions it was necessary to change the naming inside the __init__.py file too. Did you do that and did you revert it, when correcting the naming of the bundle directories?

 

Also browsing the forum I found another path you might try to put the bundles in:

/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins

 

I hope that gets you going. :)



#742 MattJ

MattJ

    Member

  • Members
  • PipPip
  • 48 posts

Posted 14 May 2015 - 04:17 PM

Hmm... Please post a screenshot of the full path of the bundles, so I can see if all files are where they belong. Also if I remember correctly for older versions it was necessary to change the naming inside the __init__.py file too. Did you do that and did you revert it, when correcting the naming of the bundle directories?

 

Also browsing the forum I found another path you might try to put the bundles in:

/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins

I hope that gets you going. :)

 

@SIrG,

 

For Windows, I changed the names of the bundles but I did not change the .py file and it worked fine.  As such, I didn't touch the .py file for the first 2 iterations on Ubuntu (maybe why it wasn't working).  

 

This time I tried downloading fresh copies from github.  I removed "-master" from the names, and placed them in /usr/lib/plexmediaserver/Resources/Plug-ins/. Since these are the newest versions, I shouldn't have to touch the .py file, right? After "chown -R root:0 XBMC*" I restarted the plexmediaserver service.  

 

Still no dice.  

 

So I took your advice above and copied the folders to /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins, "chown -R plex:125 XBMC*", restarted the service, and boom...it worked.

 

So, the conclusion is, for the agents to work on Ubuntu:

 

1.  Download from github and unzip

2.  Remove "-master" from the end of both folder names.

3.  Copy them to folder:  /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins

4.  Find the group number for user "plex" by command "id plex".

5.  "cd" to folder in step 3 and change ownership of both XBMC bundles: "sudo chown plex:{gid} XBMC*"

6.  run "sudo service plexmediaserver restart".  Done.

 

Thanks for all your help SIrG.



#743 SlrG

SlrG

    Dedicated Member

  • Members
  • PipPipPip
  • 237 posts

Posted 14 May 2015 - 04:33 PM

I'm glad you got it working. :) What version of Ubuntu do you have exactly? I'll add your description of what you did and what is working to the instructions on github. Thank you very much for posting the detailed process. :)



#744 MattJ

MattJ

    Member

  • Members
  • PipPip
  • 48 posts

Posted 14 May 2015 - 10:15 PM

I'm glad you got it working. :) What version of Ubuntu do you have exactly? I'll add your description of what you did and what is working to the instructions on github. Thank you very much for posting the detailed process. :)

 

It's the least I could do considering these tools are free and someone else spent the time to develop them.

 

Ubuntu 14.04

Plex v. 0.9.12.1

 

Also, if you haven't already, you may want to add a line to the instructions that says:

 

"Be careful: Plex is sneaky...when you're creating or editing a library, if you click into a different section of the create/edit dialog page, Plex will sometimes change the default scanner back to Freebase/theMovieDB/TVDB."

 

I found this out the hard way.  Loaded the entire library with Freebase and trying to Force Refresh with XBMCnfo was no use...ended up deleting the library and starting from scratch.  Clicking around in the dialog a few times and going back to "Advanced" is when I realized Plex had changed it back on me.  Ugh!



#745 Chronosdk

Chronosdk

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 15 May 2015 - 11:07 PM

Hi.

 

First off, thanks for a great thread about these awesome agents.

I just installed my first plex server last night, using Debian 8.0 and PMS 0.9.12.1.1079-b655370, and I'm loving it so far.

 

I did what all first timers do, and used the default scraper/agents, and waited for 14+ hours for it to complete.

 

I'm a long timer user of xbmc, and all my content is exported to seperate nfo files on my NAS, and i started searching for a better way to not spend 14 hours.

 

Hence, i found this thread.

 

I downloaded the github files, installed them both in /usr/lib/.. (and so on), and /var/lib/.. (and so on)

They show up under Agents in pms settings, and i moved the Local Media Assets above xbmcnfoimporter for both Movies and TV, as I'm a Plex Pass member.

 

Tried updating my library, nothing happened... fair enough, there are already tons of content.

I then went on and removed my movie library from pms, and re added it, using xbmcnfoimporter as agent.

 

Nothing happens.

Not a single movie is imported to the library.

 

Any help would be appreciated.

 

Edit: I enabled agent debugging, but I'm not sure where to find that debug log.

 

 

Edit: I feel like an idiot now.. I'm not a *nix guy, so my skills are very basic, and I had a friend setting it up for me.

However.. upon rebooting the server earlier today, it did not mount the nas drives.

 

It's scanning as I'm writing this, will update this post, if i get problems.



#746 SlrG

SlrG

    Dedicated Member

  • Members
  • PipPipPip
  • 237 posts

Posted 17 May 2015 - 03:27 PM

No problem. :) I'm glad you got it working. Feel free to post if there are problems.



#747 lionking15

lionking15

    Member

  • Members
  • PipPip
  • 11 posts

Posted 18 May 2015 - 11:36 AM

Hi
 
I have installed the tv and movie plugin, and then to test that it was working i changed the poster and plot in the nfo, for the movie and one of the tv series.
 
With regard to the tv series it displayed the changed poster, but did not change the plot, so it looks like it took the local poster, but the plot still was taken from the internet.
With regard to the movie it didnt use my local poster or plot.
 
I have attached the logs (Hope i've done it right), please can u tell me what i am doing wrong.
 
Thanks for your help

Attached Files



#748 SlrG

SlrG

    Dedicated Member

  • Members
  • PipPipPip
  • 237 posts

Posted 18 May 2015 - 12:22 PM

Well, only chaning the files and reloading won't work most of the time, as plex caches a lot of stuff.

 

A few pages back I posted the following (slightly edited):

If you have changed the info for a lot of movies, the only way is to recreate the whole library. Then both title and picture changes will be recognized. If all your movies have proper metadata alongside the media files, it doesn't take too long IMHO.

 

If you changed only one or some movies, you can move them out of your movie folder, rescan and afterwards readd them and rescan again.

 

Another way is to open the movie info, choose Fix Incorrect Match and let plex automatch the movie using an online agent (The Movie DB). Then choose Fix Incorrect Match again and use the XBMCnfoImporter again.

 

So the preferred way is to have the correct metadata in place before using the agents. If not, one of the above will propably solve your problem.

 

The logs show nothing. Please make sure you enable debug logging in the agents settings and that a real log is generated. Sometimes plex just doesn't create a correct one on the first run. A correct one will show the version of the agent beeing used.



#749 sbussinger

sbussinger

    Member

  • Members
  • PipPip
  • 10 posts

Posted 19 May 2015 - 08:27 PM

I'm trying to use the XBMCnfoTVImporter bundle and can't seem to get it to do anything. I'm working with shows that originally were recorded using Windows Media Center as WTV files for shows that have poor (or no) metadata on TVDB. I'm using MCEBuddy to move and rename the files to a Plex library and generate an NFO file using the metadata from the WTV file. I tried putting the original WTV file into the library as well as converting it to an MP4 and putting that into the library and the results are the same: no metadata for the shows.

 

Here's the NFO file for a show:

<?xml version="1.0" encoding="utf-8"?>
<episodedetails>
<xshow>Island Life</xshow>
<xrating>TV-G</xrating>
<xsport>False</xsport>
<xrecorded>2015-04-10</xrecorded>
<xtvdbid />
<xtmdbid />
<title />
<showtitle>Island Life</showtitle>
<season />
<episode />
<plot>An engaged couple plans to open their dream restaurant in Nantucket, Mass., which has been a special place for them.</plot>
<thumb />
<id />
<credits>;;;</credits>
<genre>Series</genre>
<genre>Reality</genre>
<premiered />
<aired>2015-01-01</aired>
<studio>Home &amp; Garden Television HD (Pacific)</studio>
<fileinfo>
<streamdetails>
<audio>
<channels>0</channels>
<codec>ac3</codec>
</audio>
<video>
<codec>mpeg2video</codec>
<durationinseconds>1913</durationinseconds>
<height>1080</height>
<language />
<longlanguage>&lt;Default&gt;</longlanguage>
<width>1920</width>
</video>
</streamdetails>
</fileinfo>
</episodedetails>

Here's the pertinent portion of the LOG file:

2015-05-19 12:59:03,394 (1d68) :  INFO (logkit:16) - ++++++++++++++++++++++++
2015-05-19 12:59:03,394 (1d68) :  INFO (logkit:16) - Entering search function
2015-05-19 12:59:03,394 (1d68) :  INFO (logkit:16) - ++++++++++++++++++++++++
2015-05-19 12:59:03,394 (1d68) :  INFO (logkit:16) - XBMCnfoTVImporter Version: 1.1-19-g0796358-146
2015-05-19 12:59:03,394 (1d68) :  INFO (logkit:16) - None
2015-05-19 12:59:03,394 (1d68) :  INFO (logkit:16) - D:\Toublesome TV Shows\Island Life
2015-05-19 12:59:03,394 (1d68) :  INFO (logkit:16) - Looking for TV Show NFO file at D:\Toublesome TV Shows\tvshow.nfo
2015-05-19 12:59:03,394 (1d68) :  INFO (logkit:16) - Looking for TV Show NFO file at D:\Toublesome TV Shows\Island Life\tvshow.nfo
2015-05-19 12:59:03,394 (1d68) :  INFO (logkit:16) - Looking for TV Show NFO file at D:\tvshow.nfo
2015-05-19 12:59:03,394 (1d68) :  INFO (logkit:16) - Couldn't find a tvshow.nfo file; will try to guess from filename...:
2015-05-19 12:59:03,394 (1d68) :  INFO (logkit:16) - Using tvshow.title = Unknown
2015-05-19 12:59:03,394 (1d68) :  INFO (logkit:16) - scraped results: Unknown | year = 0 | id = 3235
2015-05-19 12:59:03,394 (1d68) :  DEBUG (runtime:918) - Response: [200] str, 620 bytes
2015-05-19 12:59:03,490 (117c) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.xbmcnfotv/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNAozMjM1czQKZGJpZGkwCnM3CnZlcnNpb25uczEwCnBhcmVudEdVSURuczgKcGFyZW50SURzNwpUVl9TaG93czEwCm1lZGlhX3R5cGVzNDMKY29tLnBsZXhhcHAuYWdlbnRzLnhibWNuZm90djovLzMyMzU%40bGFuZz14bnM0Cmd1aWRzNAozMjM1czIKaWRyMAo_
2015-05-19 12:59:03,493 (117c) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.xbmcnfotv/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNAozMjM1czQKZGJpZGkwCnM3CnZlcnNpb25uczEwCnBhcmVudEdVSURuczgKcGFyZW50SURzNwpUVl9TaG93czEwCm1lZGlhX3R5cGVzNDMKY29tLnBsZXhhcHAuYWdlbnRzLnhibWNuZm90djovLzMyMzU@bGFuZz14bnM0Cmd1aWRzNAozMjM1czIKaWRyMAo_
2015-05-19 12:59:03,493 (117c) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.xbmcnfotv://3235?lang=xn
2015-05-19 12:59:03,496 (117c) :  ERROR (model:201) - Cannot read model from C:\Users\admin\AppData\Local\Plex Media Server\Metadata\TV Shows\4\1c86cd15b6c17900d7537bdfd4f89ffc4af109b.bundle\Contents\com.plexapp.agents.xbmcnfotv
2015-05-19 12:59:03,496 (117c) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/library/metadata/3235/tree'
2015-05-19 12:59:03,497 (117c) :  INFO (logkit:16) - ++++++++++++++++++++++++
2015-05-19 12:59:03,497 (117c) :  INFO (logkit:16) - Entering update function
2015-05-19 12:59:03,497 (117c) :  INFO (logkit:16) - ++++++++++++++++++++++++
2015-05-19 12:59:03,497 (117c) :  INFO (logkit:16) - XBMCnfoTVImporter Version: 1.1-19-g0796358-146
2015-05-19 12:59:03,497 (117c) :  INFO (datakit:24) - Resetting the dictionary
2015-05-19 12:59:03,497 (117c) :  INFO (datakit:118) - No default dictionary file
2015-05-19 12:59:03,497 (117c) :  INFO (logkit:16) - Update called for TV Show with id = 3235
2015-05-19 12:59:03,497 (117c) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/library/metadata/3235/tree'
2015-05-19 12:59:03,497 (117c) :  INFO (logkit:16) - Looking for TV Show NFO file at D:\Toublesome TV Shows\tvshow.nfo
2015-05-19 12:59:03,497 (117c) :  INFO (logkit:16) - Looking for TV Show NFO file at D:\Toublesome TV Shows\Island Life\tvshow.nfo
2015-05-19 12:59:03,497 (117c) :  INFO (logkit:16) - Looking for TV Show NFO file at D:\tvshow.nfo
2015-05-19 12:59:03,497 (117c) :  INFO (logkit:16) - Trying D:\Toublesome TV Shows\poster.jpg
2015-05-19 12:59:03,513 (117c) :  INFO (logkit:16) - Trying D:\Toublesome TV Shows\folder.jpg
2015-05-19 12:59:03,513 (117c) :  INFO (logkit:16) - Trying D:\Toublesome TV Shows\show.jpg
2015-05-19 12:59:03,513 (117c) :  INFO (logkit:16) - Trying D:\Toublesome TV Shows\season-all-poster.jpg
2015-05-19 12:59:03,513 (117c) :  INFO (logkit:16) - No poster file found! Aborting!
2015-05-19 12:59:03,513 (117c) :  INFO (logkit:16) - Trying D:\Toublesome TV Shows\banner.jpg
2015-05-19 12:59:03,516 (117c) :  INFO (logkit:16) - Trying D:\Toublesome TV Shows\folder-banner.jpg
2015-05-19 12:59:03,516 (117c) :  INFO (logkit:16) - No banner file found! Aborting!
2015-05-19 12:59:03,516 (117c) :  INFO (logkit:16) - Trying D:\Toublesome TV Shows\fanart.jpg
2015-05-19 12:59:03,516 (117c) :  INFO (logkit:16) - Trying D:\Toublesome TV Shows\art.jpg
2015-05-19 12:59:03,516 (117c) :  INFO (logkit:16) - Trying D:\Toublesome TV Shows\backdrop.jpg
2015-05-19 12:59:03,516 (117c) :  INFO (logkit:16) - Trying D:\Toublesome TV Shows\background.jpg
2015-05-19 12:59:03,519 (117c) :  INFO (logkit:16) - No fanart file found! Aborting!
2015-05-19 12:59:03,519 (117c) :  INFO (logkit:16) - Trying D:\Toublesome TV Shows\theme.mp3
2015-05-19 12:59:03,519 (117c) :  INFO (logkit:16) - No theme file found! Aborting!
2015-05-19 12:59:03,519 (117c) :  INFO (logkit:16) - Couldn't find a tvshow.nfo file; will try to guess from filename...:
2015-05-19 12:59:03,519 (117c) :  INFO (logkit:16) - Using tvshow.title = Unknown
2015-05-19 12:59:03,519 (117c) :  INFO (logkit:16) - UpdateEpisodes called
2015-05-19 12:59:03,519 (117c) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/library/metadata/3235/children'
2015-05-19 12:59:03,519 (117c) :  INFO (logkit:16) - seasonID : D:\Toublesome TV Shows
2015-05-19 12:59:03,519 (117c) :  INFO (logkit:16) - Finding episodes
2015-05-19 12:59:03,519 (117c) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/library/metadata/3236/children'
2015-05-19 12:59:03,533 (117c) :  INFO (logkit:16) - Found 1 episodes.
2015-05-19 12:59:03,533 (117c) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/library/metadata/3236/children'
2015-05-19 12:59:03,533 (117c) :  INFO (logkit:16) - Trying D:\Toublesome TV Shows\season2015-poster.jpg
2015-05-19 12:59:03,533 (117c) :  INFO (logkit:16) - Trying D:\Toublesome TV Shows\Island Life\season2015-poster.jpg
2015-05-19 12:59:03,533 (117c) :  INFO (logkit:16) - Trying D:\Toublesome TV Shows\season2015.tbn
2015-05-19 12:59:03,533 (117c) :  INFO (logkit:16) - Trying D:\Toublesome TV Shows\Island Life\season2015.tbn
2015-05-19 12:59:03,533 (117c) :  INFO (logkit:16) - Trying D:\Toublesome TV Shows\Island Life\folder.jpg
2015-05-19 12:59:03,533 (117c) :  INFO (logkit:16) - Trying D:\Toublesome TV Shows\Island Life\poster.jpg
2015-05-19 12:59:03,533 (117c) :  INFO (logkit:16) - Trying D:\Toublesome TV Shows\poster.jpg
2015-05-19 12:59:03,533 (117c) :  INFO (logkit:16) - No season poster file found! Aborting!
2015-05-19 12:59:03,533 (117c) :  INFO (logkit:16) - epKEY: /library/metadata/3237
2015-05-19 12:59:03,533 (117c) :  INFO (logkit:16) - epNUM: Error!
2015-05-19 12:59:03,533 (117c) :  INFO (logkit:16) - epNUM: 1
2015-05-19 12:59:03,549 (117c) :  DEBUG (threadkit:234) - Starting a parallel task set named UpdateEpisodes with 1 tasks
2015-05-19 12:59:03,549 (1d64) :  INFO (logkit:16) - UpdateEpisode called for episode (<Framework.modelling.attributes.RecordObject object at 0x05286FB0>, /library/metadata/3237) S2015E01
2015-05-19 12:59:03,549 (1d64) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/library/metadata/3237/tree'
2015-05-19 12:59:03,549 (1d64) :  INFO (logkit:16) - UPDATE: D:\Toublesome TV Shows\Island Life\Island Life 2015-04-10 1628.mp4
2015-05-19 12:59:03,549 (1d64) :  INFO (logkit:16) - Looking for episode NFO file D:\Toublesome TV Shows\Island Life\Island Life 2015-04-10 1628.nfo
2015-05-19 12:59:03,549 (1d64) :  INFO (logkit:16) - File exists...
2015-05-19 12:59:03,549 (1d64) :  INFO (logkit:16) - Looks like an XBMC NFO file (has <episodedetails>)
2015-05-19 12:59:03,549 (1d64) :  INFO (logkit:16) - EpNum: 1 NFOEpCount:1 Current EpNFOPos: 1
2015-05-19 12:59:03,549 (1d64) :  INFO (logkit:16) - Removing empty XML Tags from episode nfo...
2015-05-19 12:59:03,549 (117c) :  DEBUG (threadkit:244) - Parallel task set UpdateEpisodes ended
2015-05-19 12:59:03,549 (1d64) :  CRITICAL (core:572) - Exception in task thread (most recent call last):
  File "C:\Users\admin\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py", line 296, in _start
    obj._exec()
  File "C:\Users\admin\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py", line 243, in _exec
    self._result = self._f(*self._args, **self._kwargs)
  File "C:\Users\admin\AppData\Local\Plex Media Server\Plug-ins\XBMCnfoTVImporter.bundle\Contents\Code\__init__.py", line 759, in UpdateEpisode
    episode.duration = eduration_ms
UnboundLocalError: local variable 'nfo_ep_num' referenced before assignment


2015-05-19 12:59:03,549 (117c) :  INFO (logkit:16) - Episode durations are: 
2015-05-19 12:59:03,549 (117c) :  INFO (logkit:16) - Set Series Episode Runtime to median of all episodes: 0 (0 minutes)
2015-05-19 12:59:03,549 (117c) :  INFO (datakit:24) - Resetting the dictionary
2015-05-19 12:59:03,549 (117c) :  INFO (datakit:118) - No default dictionary file
2015-05-19 12:59:03,565 (117c) :  DEBUG (model:225) - Serializing to C:\Users\admin\AppData\Local\Plex Media Server\Metadata\TV Shows\4\1c86cd15b6c17900d7537bdfd4f89ffc4af109b.bundle\Contents\com.plexapp.agents.xbmcnfotv\Info.xml
2015-05-19 12:59:03,565 (117c) :  DEBUG (runtime:918) - Response: [200] str, 16 bytes

The NFO file doesn't have a lot of metadata in it, but I'd really like to get what's there (in particular the plot). I tried adding in some fake values for some of the metadata like season and episode, but it didn't seem to make any difference.

 

Thanks for any suggestions!



#750 SlrG

SlrG

    Dedicated Member

  • Members
  • PipPipPip
  • 237 posts

Posted 19 May 2015 - 09:14 PM

The nfo triggers an error in the agent. Can you zip up the folder of the show with all metadata but without the episode files? I'll try to fix the error.



#751 sbussinger

sbussinger

    Member

  • Members
  • PipPip
  • 10 posts

Posted 19 May 2015 - 10:35 PM

Thanks for the help! I've attached a zip with the NFO file and a JPG. Let me know if there's anything else I can give you to help.

 

Another question: Is it possible to use XBMCnfoTVImporter along with the standard Plex agent? I'd really like to have Plex get the limited limited Metadata that's in the NFO file but still go online in those cases where there's no NFO file. I'm testing with two different libraries (one for XBMCnfoTVImporter and one for the standard setup) but I'd prefer to have all the shows appear in a single library.

 

Thanks again!

Attached Files



#752 SlrG

SlrG

    Dedicated Member

  • Members
  • PipPipPip
  • 237 posts

Posted 20 May 2015 - 08:16 AM

Thanks for posting. I'll check it over the weekend. Real Life is taking its toll at the moment. :)

 

Regarding the combination of agents, thats not possible sadly. :( It would require changes from the plex devs and I don't see that coming.



#753 lionking15

lionking15

    Member

  • Members
  • PipPip
  • 11 posts

Posted 20 May 2015 - 08:36 AM

Thanks for your reply :)

 

Please can u tell me, besides placing the XBMCnfoMoviesImporter at the top of the list in the XBMCnfoMoviesImporter tab, is there anything else we have to save so that it knows to use XBMCnfoMoviesImporter agent, instead of using on of the other agents...Because if i go out and come back in, the Personal Media tab is always highlighted ?

 

Thanks

 

 



#754 SlrG

SlrG

    Dedicated Member

  • Members
  • PipPipPip
  • 237 posts

Posted 20 May 2015 - 07:45 PM

I don't quite understand the question. Sorry. But I'll try to answer anyways.

 

When you create a library you have to select the approriate agent. Plex will remember this setting for the library and will use the selected agent for newly added files and refreshes to that library.

 

For each new library the setting gets reset to default, so you will have to select the correct agent again.

 

The order of the agents you set in plex' settings decides if you wan't to place certain agents like the local media assets one before the XBMC agent. This agent will then contribute to the results. Sadly this is somewhat limited and not freely configurable. Not all agents can be added to support the XBMC one and the XBMC one can't support every other agent.



#755 sbussinger

sbussinger

    Member

  • Members
  • PipPip
  • 10 posts

Posted 21 May 2015 - 12:19 AM

Thanks for taking a look at those logs!

 

Does your agent attempt to create show and season metadata? I'm experimenting again using a different series that has good TVDB metadata. Your agent created a good entry for the episode itself, but the show and season have no metadata so the episode is showing up in Plex as a show called "Unknown". I'm thinking that perhaps if I changed the agent back to TVDB temporarily it might create that additional metadata for me and fix it all up, but I wasn't sure if it was safe to change the agent for a library like that. Will it cause a problem?

 

It's a pity the agents can't work together. It's even more a pity that Plex's metadata handling is so limited (doesn't like WTV files and doesn't like NFO files). I'm not sure how I'm going to handle this now.



#756 sbussinger

sbussinger

    Member

  • Members
  • PipPip
  • 10 posts

Posted 21 May 2015 - 05:53 AM

I figured out an easy way to add the show and season metadata for my files. I went into the Media Manager, selected the show, and then selected the menu option that fixes mismatchs. Using the search function on the dialog and explicitly choosing the TVDB agent then fills in all the basic series metadata for me.



#757 SlrG

SlrG

    Dedicated Member

  • Members
  • PipPipPip
  • 237 posts

Posted 21 May 2015 - 09:03 AM

The XBMC agents do no online scraping. They are designed to be fully offline and use only the metadata they find in the movies or series directory. This is to enable people to create a library where they control everything themselfs. From posters and fanart to movie info. Using a Media Manager that generates Kodi style nfo files and naming shemes (e.g. Ember Media Manager or Kodi itself) you can scrape your media and add online art and info. You then finetune that to suit your needs and wishes. If you have done that once, you can use the agents to import a perfectly working library without the need for an online connection or placing a traffic burden on the great online artwork and nfo sites again and again.

 

Knowing this, if there is no series information available as nfo file already, it won't be created out of the blue. If you have only episode nfos, only they will be used. So if you want to use the agents, you will have to create a basic tvshow.nfo file too. I know that is a lot of work, but it is one time work. Whenever something goes wrong (and for me that happens often for one reason or the other), you will be glad you have to simply create a new library and let the agents do the work. Even large libraries will scan quite quick when no online downloads are necessary.

 

And you are guaranteed to get the same result every time, which might or might not happen when using online sources.



#758 lionking15

lionking15

    Member

  • Members
  • PipPip
  • 11 posts

Posted 21 May 2015 - 11:00 PM

Thank u for your help...that works perfectly

I didn't realize that u have to set the agent each time.

#759 sbussinger

sbussinger

    Member

  • Members
  • PipPip
  • 10 posts

Posted 27 May 2015 - 07:58 AM

Did you have a chance to look at the NFO by any chance? I assume it's the lack of episode information that's the issue, right?



#760 SlrG

SlrG

    Dedicated Member

  • Members
  • PipPipPip
  • 237 posts

Posted 27 May 2015 - 04:03 PM

Yes and no. There are some problems with your nfo file.

 

The <title> tag is empty. It should contain the same info as <xshow> IMHO. The agent got confused by that and failed to scan the remaining info and set the name of the show to unknown. I released a new version, that lets plex guess the show title which should work in most cases.

 

The next thing is the empty tags in general. The new version removes them before scanning.

 

The <credits>;;;</credits> tag contains those ; which is plain wrong IMHO. If there is no info, the tag should be empty or removed.

 

There is no <rating> tag but only the <xrating> tag. This is not Kodi complient IMHO.

 

I'll have to do some further testing, but those are the first results.

 

In the end I would recommend to use a media manager that has better Kodi support.







Also tagged with one or more of these keywords: posters