Simple modification - advice wanted please

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
truant Offline
Junior Member
Posts: 25
Joined: Aug 2009
Reputation: 0
Post: #1
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!
find quote
LoloMc² Offline
Senior Member
Posts: 163
Joined: Mar 2009
Reputation: 0
Post: #2
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,
find quote
truant Offline
Junior Member
Posts: 25
Joined: Aug 2009
Reputation: 0
Post: #3
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.
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,284
Joined: Jun 2006
Reputation: 57
Location: Earth
Post: #4
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)
find quote
truant Offline
Junior Member
Posts: 25
Joined: Aug 2009
Reputation: 0
Post: #5
Thanks Jezz, that's exactly the kind of pointer I needed to get started.

Much appreciated.
find quote