Calling metadata agent from plugin?

I’m developing the MythRecordings plug-in, which allows you to play back recordings made using the MythTV PVR.


In the simplest interface, the plug-in presents a list of recordings, with the metadata provided by MythTV (eg a description, typically retrieved by mythtv through an xmltv provider). This is sufficient - but confusing: I have a long, linear list of recordings, with no structure (all my recorded episodes of CSI New York are mixed with cooking programmes, kids Tv, etc)


Instead, I want to group all my “CSI New York” recordings into a directory. This also works - I just group all recordings with the same title into a directory. Now I have all my CSIs on their own


Finally, however, I wan’t to provide an image and perhaps a bit of descriptive text for the “CSI New York” directory. This is unfortunately not available from mythtv (which only knows the individual recordings, not the fact that they’re episodes of a series).


So I thought: this is exactly what the metadata agents do for movies. Can I somehow call them from my channel plugin (“please give me a thumbnail image and a few lines of description for something called ‘CSI New York’, if you have it”).


Does that make sense? And if so: how do I do it?


Apologies for a long rant…

AFAIK, nope....

But you could make an agent, that would sit in as the last one on the chain, and that agent could call your plugin

And from your plugin, make a refresh of the library

/T

@dane22

Thanks for answering!

Im not sure if your suggestion would work - or maybe I misunderstand.

My plugin server contents that does not belong in the Plex library (the plugin gets the contents and associated metadata from my MythTV PVR, through a REST API). So forcing a refresh of the library will not cause the metadata agents to look up my recordings.

EDIT:

After a bit of digging, I discover that the MythTV PVR can actually grab the metadata itself - meaning I can get the data I need through the same REST API that I use already!

Of course, that means configuring metadata grabbing in two places (Plex for the movies in my library, MythTV for my recordings).

But I'll live  :mellow:

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