PlexConnect icon indicating copy to clipboard operation
PlexConnect copied to clipboard

Metadata values in XML files

Open OskarPersson opened this issue 11 years ago • 1 comments

Where can I find the different metadata values I can use on the different pages? For example, on the "onDeck" page I want to have the episode number shown as "S01 E02" instead of "1x02" below each show when selected. In the onDeck.xml file I found <subtitle>{{episodestring(parentIndex:0:index:0)}}</subtitle> but I don't know what I should replace it with.

Same thing on the movie page, how do I get multiple genres to display in the details section? In PrePlay_Fanart.xml there is <label>{{VAL(Video/Genre/tag)}}</label> but again, what should I replace it with?

OskarPersson avatar Mar 16 '15 00:03 OskarPersson

<subtitle>{{episodestring(parentIndex:0:index:0)}}</subtitle>

parentIndex is the Season Number index is the Episode Number However the Season episode string is parsed in the {{episodesting()}} function which is in XMLConverter.py, you would need to edit that function.

XMLConverter.py line 1207, change:-

out = self._("{0:0d}x{1:02d} {2}").format(int(parentIndex), int(index), title) to out = self._("S{0:0d} E{1:02d} {2}").format(int(parentIndex), int(index), title)

<label>{{VAL(Video/Genre/tag)}}</label>

Try:- <label>{{VAL(Video/Genre[0]/tag)}}{{VAL(Video/Genre[1]/tag::=, )}}{{VAL(Video/Genre[1]/tag)}}{{VAL(Video/Genre[2]/tag::=, )}}{{VAL(Video/Genre[2]/tag)}}</label>

This will list up to 3 genres.

roidy avatar Mar 16 '15 11:03 roidy