Metadata agents for exported XBMC library

@all:

A new version of the movies agent is available [here](https://github.com/gboudreau/XBMC-Movies-Metadata-Agent-for-Plex). It should provide the recognition of DVD file structures (XBMC Eden), where the nfo file is located in the VIDEO_TS folder. Please give it a try and if there are problems report them here. I'll try to troubleshoot and fix them.

Im using XBMC right now and im considering giving plex a go but was reluctant because of lack of nfo support. Now that i see we can use nf via your plugin, can it import the playcount tag and set tag?

Set is Collections in Plex so yes but I don't think there is anything to record how many times (if that is what playcount is for) a movie (or anything else) has been seen.

Also all data is gathered automatically from the net for for most of anyone library, if you simply follow the way to proprerly name your files, you don't need any nfo. (for instances all my series, movies and animes from my signature had their metadata gathered from internet).

At the moment collections or playcount are not supported by this plugin. I'll have a look at it and try to implement it. My work life is rather busy at the moment, so this will take time.

Is that only for your latest version? Because I added collections in "Set" already (on other versions) and they were working fine.

Set is Collections in Plex so yes but I don't think there is anything to record how many times (if that is what playcount is for) a movie (or anything else) has been seen.

Also all data is gathered automatically from the net for for most of anyone library, if you simply follow the way to proprerly name your files, you don't need any nfo. (for instances all my series, movies and animes from my signature had their metadata gathered from internet).

Playcount import in XBMC is what sets the watch status when rescanning library. im aware that plex can use tvdb to get info, but i have worked really hard to get my library in the proper state using nfos to fix minor errors caused by tvdb scraping which im sure would be reproduced by plex since its using the same info. And movies... well movies was the worst when came time to add them and i fixed all my movies with nfo so wouldnt want to have to fix them again. Anime worries me because i dont want to uses TVDB to scan i would prefer Anidb since my current setup doesnt have season folders for anime. Anyways if you have any advice for me please help me out here

At the moment collections or playcount are not supported by this plugin. I'll have a look at it and try to implement it. My work life is rather busy at the moment, so this will take time.

Thanks

Hey all. I only started using Plex yesterday and absolutely love it. I have over 4000 movies and 600 TV series all scraped for use with XBMC, so your plugin SlrG is a must. But I've notice that scanned TV shows using your plugin can't doesn't the series theme despite having the option enabled. Is this a known issue?

The plugin is not mine, but I was the last one to do some changes and fix errors.

@Ismelda: I did not remove code from the plugin, so if you had this included once, it is propably still there. There are some outcommented parts AFAIR. I don't have the time at the moment to check.

My comment that it isn't supported was based on my impression when scanning my database. There were no sets (collections) shown, so I assumed plex doesn't support this. I now learn it does and I'll have a look at it on how to enable and use it, as this is a feature I want for myself, too. If your code already supports it, all the better. The same goes for playcount. I didn't see it anywhere yet and so I assumed its not present. I'm quite new to plex and still have a lot to learn.

So if you have ideas for saitoh183 please go ahead and tell him. Also feel free to change the plugin if changes are needed.

@Shinu

What exactly do you mean by series theme? The fanart picture should be scanned and shown. At least it does on my system. If it does not work for you, please post a filelist of one of your series folders, where it doesn't show. Also a log scanning this series would be helpful. Copy the series to an empty folder and let the agent scan it. Then please post the log of the agent.

@Shinu

What exactly do you mean by series theme? The fanart picture should be scanned and shown. At least it does on my system. If it does not work for you, please post a filelist of one of your series folders, where it doesn't show. Also a log scanning this series would be helpful. Copy the series to an empty folder and let the agent scan it. Then please post the log of the agent.

I think he is referring to the theme song

I think he is referring to the theme song

Yup, series theme song.

Ah, I see. I don't have any theme songs for my series. Didn't even know there are programs to support such a feature. XBMC and Ember Media Manager AFAIK don't have it. How are the folder structure, naming convention and/or nfo tags for this to work with other agents?

As this agent is called XBMC nfo scraper I don't know if Guillaume will accept a change that adds features not present in the parent application.

I checked the source of the movies agent. Collections are supported and will be imported correctly. Playcount is and will not be supported as long as Plex doesn't allow to import it via its Metadata Model Classes (http://dev.plexapp.com/docs/agents/models.html)

Ah, I see. I don't have any theme songs for my series. Didn't even know there are programs to support such a feature. XBMC and Ember Media Manager AFAIK don't have it. How are the folder structure, naming convention and/or nfo tags for this to work with other agents?

As this agent is called XBMC nfo scraper I don't know if Guillaume will accept a change that adds features not present in the parent application.

Series themes are actually supported by XBMC. The info about the theme however isn't added to the nfo file. The user simply has to place the theme song (must be named 'theme' and must be in mp3 format) in the main series directory and the song will play upon accessing that series. Before I found out about the XBMC importer, I added a few shows using the built-in scanners (TVDB, etc) and they all played as should.

I added the recognition of theme.mp3 files to the agent and sent a pull request to Guillaume. Once he accepts it, the new code will be available at his github repo.

Awesome! Thx! Would users have to remove and re-scan their library for it to be recognized, or would a simple library update do?

Guillaume was very quick and has already accepted the change.

@Shinu:

A library update should be enough for the theme to be recognized.

edit:

After rechecking I have to correct myself. An simple update is not enough. You'll have to click on each series and choose refresh, use force refresh from the more menu or recreate your library.

Yeah, I ended up refreshing each series individually. Took a while seeing as I have over 600 of them :D Thanks again.

Latest version of the agent for TVshow seems to forbid the use of “show” and “art” even if the local media agent is set to be working first.

I guess the solution is to add those in the code as follow:

		if os.path.exists(path + “/…/show.jpg”):
posterFilename = path + “/…/show.jpg”
if os.path.exists(path + “/show.jpg”):
posterFilename = path + “/show.jpg”
inside the posterFilename = “” section

and
		if os.path.exists(path + “/…/art.jpg”):
fanartFilename = path + “/…/art.jpg”
if os.path.exists(path + “/art.jpg”):
fanartFilename = path + “/art.jpg”
inside the fanartFilename = “” section

There was no support for show and art in any version I looked at the source. So if it ever did support this, it must have been quite some versions before.

The second thing is, that show.jpg and art.jpg are not XBMC naming schemes, are they? So if this agent is called XBMC TV .nfo importer, why should it support those?

Not forcing you to do anything there :slight_smile:

Just it was working before, I mean you just add to add the Local Media as first agent and all Plex images naming was supported. Now it’s more restrictive.

I never used XBMC before, I just wanted a tool to be able to add content from any file (could have been a .xml, a .txt or whatever) for things I can’t find metadata for easily. So this agent allow me to use my metadata for these shows and movies. There is simply no other tool to do that. So naturally I’m expecting it to support Plex but I can modify the script myself so it’s not a problem.