Kodi Community Forum
Simple modification - advice wanted please - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Confluence (https://forum.kodi.tv/forumdisplay.php?fid=125)
+---- Thread: Simple modification - advice wanted please (/showthread.php?tid=78770)



Simple modification - advice wanted please - truant - 2010-08-11

Hi,

I'm trying to modify the default (shipped with Camelot) version of Confluence to change the TV Episode listings (in MediaInfo 2 mode) from showing the rating on the right of each ep's listing to showing the duration. Rating, I'm not bothered about; duration is sometimes useful to know.

I've figured out I need to change ListItem.Rating to ListItem.Duration somewhere, but I'm having real trouble pinning down just where and in which file I need to make the change.

Any pointers would be much appreciated. Thanks!


- LoloMc² - 2010-08-12

truant Wrote:Hi,

I'm trying to modify the default (shipped with Camelot) version of Confluence to change the TV Episode listings (in MediaInfo 2 mode) from showing the rating on the right of each ep's listing to showing the duration. Rating, I'm not bothered about; duration is sometimes useful to know.

I've figured out I need to change ListItem.Rating to ListItem.Duration somewhere, but I'm having real trouble pinning down just where and in which file I need to make the change.

Any pointers would be much appreciated. Thanks!
Hi, just an advice... When you know (more or less) what you are searching for : Download and install Notepad++ (GPL software) and open all your /720p/*.xml files simultaneously. Then do a search on all opened documents

Regards,


- truant - 2010-08-12

I've done quite a lot of grepping (linux command line file searching tool) of xml files in the 720p directory already.

Can't seem to find the bits that look right. Every time ListItem.Rating is used it's either referencing a texture, or it's got the word "Rating" in front of it. Neither makes much sense for being the bit I want to change.

I think I'm going to back up some files and just start changing stuff, see what happens.

Thanks for getting back to me though - you give a good bit of advice, and Notepad++ is a great bit of Windows software.


- Jezz_X - 2010-08-12

It doesn't use ListItem.Rating Confluence uses ListItem.Label2 in all its media lists and lets XBMC decide what to put there
The bit you looking for will be in ViewsVideoLibrary.xml around
Code:
<include name="MediaListView3">
And you going to need to duplicate the control with label2 and add some visible conditions for Container.Content(Episodes)


- truant - 2010-08-12

Thanks Jezz, that's exactly the kind of pointer I needed to get started.

Much appreciated.