Local agent for local (MediaBrowser) metadata

Hi All,



I am having trouble with tv library sizes and metadata fetching on my 20tb collection.

All of my metadata is already local from an alternative media server (Media Browser), and i thought it would be great if this local metadata could be leveraged by pms.

This would help other users making a transition or in my initial case trying out plex for its dlna services.

And because all the data is local, it should make library scanning fast but feature rich for such users.

And hopefully as the data is all local it might be easier to write the agent.

I am planning to learn python and give agent writing a go, but i thought id ask here 1st if anyone more experienced would be interested in helping as i know nothing about python or plex’s objects/functions (dont even know if im using the correct terminology as im not a developer).



I have attached an example of the metadata

Example Local MediaBrowser TV Metadata



These are functions that would be useful for the agent

Showname - is in the directory path (this is same as plex expects already)

Season - is in the directory path (this is same as plex expects already)

Episode Name - is tag in an xml of the same filename in the metadata subfolder (or better yet in the filename as this would be there from day 0).

Episode Image - is a tag in an xml of the same filename as video file in the metadata subfolder. .jpg is in the metadata folder

Date - is a tag in an xml of the same filename as video file in the metadata subfolder. (otherwise filesystem date from day 0 if xml not there)



One gotcha is that the metadata might not yet exist…on first scan. i presume this is a natural function of an agent to rescan for missing metadata later…but of course it wont be a change in the video file that would trigger a need for rescan, but a change in the xml/existence/file date of image. If live updates are not going to be possible then maybe this is a nonstarter.



Trudge has given me links to phyton workshops.

I have copied the personal media scanner to users\plugins and am going to give it a go. but perhaps an experience developer could identify the key coding statements to discover and apply the attributes above using the example? or maybe even knock one up for me to test in 10mins :-)?



thanks

Link to post



I think i have found the function that is relevant in the localmedia.bundle.

Could anyone offer a bit of advice on a slight modification as per the post above?



thanks

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.