Displaying information scraped by a plugin to display in skin.

Nudgenudge has reworked the Game Launcher plugin to scrape information such as console, genre, summary, publisher etc… so they can be accessed and displayed within a skin. I’ve been trying to integrate the plugin into my skin but am having no luck getting any of the information to display besides the title and summary. I believe the fields used are as listed above. My initial thoughts are either that the information needs to be store under the same fields used by the plex library? ie: publisher could be stored under studio and so on, or… because this is an application and not a video it’s not possible to use these fields. Is there a specific way to pass extra information from a plugin to the skin or is this not possible?



Thanks,



Marc



PS. sorry if this is the wrong section, i really couldn’t decide if this was skinning or plugin related.

right section, its plugin related. currently plugins are very limited in what metadata fields they can provide to plex (and thus the skin), plugins can set title, thumb, subtitle (that second line below the title in most views), duration, art (fanart backdrops), rating (the stars), and summary, plus the title1 and title2 strings that set the breadcrumb display at the top of the window in mediastream. this is a limitation of the current plugin framework and will be expanded eventually in the future. for now, i’d suggest having the plugin put the genre in the subtitle field and append the publisher to the bottom of the summary box, or something along those lines.

Thanks for the reply. Would it be possible to use these options creatively and put something like the year under duration? Also, when you say title1 and title2, are these referring to which level of the plugin you’re in? If so, instead of having a console field and media flag would it be possible to use one of these and say for example ‘$INFO[listitem.title(1/2),flags/consoles/,.png]’ since the sections are the console names anyway?



Thanks again,



Marc

any mediacontainer can set title1 and title2 arbitrarily, they’re gennerally used as a breadcrumb for telling you where you are in something, like title1=“The Daily Show”, title2=“Full Episodes”, it ends up as those 2 strings at the top of the window (in mediastream at least, i forget where aeon puts them), no you cant put year in duration, it only accepts an integer in milliseconds, which plex translates into hours:minutes:seconds format, and a directoryItem cant have a duration. use a line in the summary box, or do like year, genre on the subtitle line.

Hi Billy Joe,

I decided to use this topic instead of mine, so it’s easier to follow.



So, we can’t set our own attributes. Ok, but do functions to “split” the value from an attribute exist?

Say I put “MAME/1992/Capcom/Fighter” as a subtitle. Will Marc be able to split this string in his skin, and use each value for media flags?



Thanks in advance,

Matt

i dont know anything about skinning, I’m on the plugin side of things. if every plugin could set their own completely arbitrary attributes, how could plex or any skin possibly be able to display them with any consistency whatsoever? i have no idea if a skin can split labels like that, but i would not recommend trying, it will break every other plugin that uses that field (and maybe the library too)

Okay, so… not good. :wink:

Well, I’ll leave it as a subtitle for the time being. If the framework somehow evolves (and I have a few suggestions/bug reports, I’ll make another topic soon :slight_smile: ), I’ll change the code.



Thanks for your help.

One other metadata item supported by plugins is infoLabel which can be passed to DirectoryItems - the text is displayed where duration is for media items.



I only just discovered this myself.



Jonny


Now THAT is a find.
Thanks, Jonny, this attribute will be perfect for the console name.

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