MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Skins


Skins You are working on a new Skin? Post it here!

Reply
 
Thread Tools Display Modes
Old 2005-12-05, 21:36   #11 (permalink)
Super Moderator
 
Join Date: Feb 2005
Location: Melbourne
Posts: 1,930
Thanks: 66
Thanked 28 Times in 28 Posts

Country:

My System

Send a message via ICQ to Marcusb
Default

Excellent FlipGer, this is something I am very interested in too.

Cheers,

Marcus.
Marcusb is offline   Reply With Quote
Old 2005-12-05, 22:53   #12 (permalink)
Super Moderator
 
FlipGer's Avatar
 
Join Date: Apr 2004
Location: Leipzig, Germany
Age: 33
Posts: 2,237
Thanks: 31
Thanked 53 Times in 39 Posts

Country:

My System

Default

Hi,

Ok, i have added the patch on sourceforge

This is only a small hack to define your own genre colors in the TVGuide. This happens through an externel XML for each skin.

If no XML is defined, the normal colors will be taken.

I have added an example GenreColors.xml. This file has to placed in the \skin\<name>\ directory. Eg. \skin\BlueTwo\GenreColors.xml

Colors can be added by name "Red"
or by HEX #RRGGBB and #AARRGGBB
#FF0000 (red)
#00FF0000 (red with alpha value 0)

You can define up to 30 colors. The "info"->"count" is optional. It might speed up the process of reading for some milliseconds. ;-)

There is no real connetion between a genre and the color, this can not be done easily. This is because the genre names are read dynamically by MP out of the tvguide.xml. So the colors are randomly added to genres by MP.

But hopefully this will help some skinners to make there TVGuides looking even nicer. :-)

Flip.
FlipGer is online now   Reply With Quote
Old 2005-12-06, 13:42   #13 (permalink)
Portal Member
 
Join Date: May 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Beautiful
Hammer9600 is offline   Reply With Quote
Old 2005-12-08, 08:19   #14 (permalink)
Portal Tester
 
Join Date: Feb 2005
Location: Melbourne
Posts: 1,929
Thanks: 4
Thanked 15 Times in 15 Posts

Country:

My System

Default

Thanks very much FlipGer.....

How can I tell when the patch has been applied to a CVS?
Taipan is offline   Reply With Quote
Old 2005-12-08, 08:59   #15 (permalink)
Super Moderator
 
FlipGer's Avatar
 
Join Date: Apr 2004
Location: Leipzig, Germany
Age: 33
Posts: 2,237
Thanks: 31
Thanked 53 Times in 39 Posts

Country:

My System

Default

Hi Taipan,

i usally take a look into the sourcecode once a day to check if the changes have been implemented. So i will let you know.

You can see it, if the new file GenreColors.xml will appear in the /skin/<name>/ directory.

"Unfortunately" some changes have been done to the sourcefiles, so i uploaded a new version today. Hopefully it will find its way into CVS.

Flip
FlipGer is online now   Reply With Quote
Old 2005-12-08, 10:16   #16 (permalink)
Portal Developer
 
frodo's Avatar
 
Join Date: Apr 2004
Location: The Netherlands
Age: 37
Posts: 1,516
Thanks: 3
Thanked 119 Times in 44 Posts

Country:

My System

Default

Sorry but it wont. The patch is not that user friendly
for example:

XML :
- users have to add <color1> to <color30> in the .xml file
- user have to fill in the count in the .xml file
Not very userfriendly. Loose the count/numbers pls

Mapping:
no mapping is possible between genre name & color. This patch only allows you to assign different colors.
I would like to have a genre<->color mapping instead

If you fix these 3 things i'll put it in cvs
frodo is offline   Reply With Quote
Old 2005-12-08, 11:05   #17 (permalink)
Super Moderator
 
FlipGer's Avatar
 
Join Date: Apr 2004
Location: Leipzig, Germany
Age: 33
Posts: 2,237
Thanks: 31
Thanked 53 Times in 39 Posts

Country:

My System

Default

Hi frodo,

Quote:
Originally Posted by frodo
Sorry but it wont. The patch is not that user friendly
for example:
XML :
- users have to add <color1> to <color30> in the .xml file
- user have to fill in the count in the .xml file
Not very userfriendly. Loose the count/numbers pls
Jep, will try to do that.

Quote:
Originally Posted by frodo
no mapping is possible between genre name & color. This patch only allows you to assign different colors.
I would like to have a genre<->color mapping instead
Jep, this is imho the worst thing and i would also like to see that, but this can not be done easliy. MP builds its genres dynamically out of the tvguide.xml. So every user has individual genre types, because of:
a) different languages
b) different grabbers

I for example have nearly 1000 genres! Because i am using the german Clickfinder for my tvguide.xml.

So, in my eyes there are only two ways to "fix" this:
1) Let the user assign colors to the genres.
Result: No influence for the skinners. Need of an additional user interface.
2) Hardcode say about 30 genres in english language.
Result: Influence for skinners. No need to import the genres from tvguide.xml anymore. Need of translation in strings.xml.

So both solutions are not very satisfying and need much code changes. Therefor i only did a fast hack. I would tend to the second one, but that is beyond my freetime...

I can change the first two points, but the third....

BTW: Is there an easy way to walk trough an xml with the xmlreader? Something like foreach node? Haven't found it yet. But will search for it.

Thanks for looking into it anyway!

Flip
FlipGer is online now   Reply With Quote
Old 2005-12-08, 11:16   #18 (permalink)
Portal Developer
 
Join Date: May 2005
Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts


Default

Hi FilpGer,

I would say define a number of genre groups or catagories. 30 seems like too many. Too many colours will make a mess of the EPG in my option. I would say limit it to 5 or 10 at the most.

Then name them in the strings files. Apply colours to them in the skin. For example Movie, News, Sports, ...

Then have a user configurable system for mapping/translating the EPG genres to these groups.

So the 1000 genres that you have are most likely Movie/Drama, Movie/Comedy, etc .. these cann all be mapped to Movie.

The original genre can still be kept, but the mapping would be just for the colour selection.

/James
James is offline   Reply With Quote
Old 2005-12-08, 11:20   #19 (permalink)
Retired Team Member
 
Join Date: Jul 2005
Location: Ørsø, Dronninglund, Denmark
Age: 29
Posts: 443
Thanks: 1
Thanked 0 Times in 0 Posts

Country:


Send a message via MSN to LordMessi Send a message via Skype™ to LordMessi
Default

My suggestion would be a 2 new fields in the genre table:

MPColor and WebColor
Both strings

Then the user could set a genre color to use in MP and one to use on the web (ie. MPW)

???
__________________
Sincerly / Med venlig hilsen,

Thomas Starup aka LordMessi
MediaPortal Design Team Member
Author/Developer of MPLE
IRC : EFNet @ #mediaportal Nick: LordMessi
Skype : LordMessi
LordMessi is offline   Reply With Quote
Old 2005-12-08, 11:21   #20 (permalink)
Super Moderator
 
FlipGer's Avatar
 
Join Date: Apr 2004
Location: Leipzig, Germany
Age: 33
Posts: 2,237
Thanks: 31
Thanked 53 Times in 39 Posts

Country:

My System

Default

Hi James,

yes, this was also more or less my idea. Thanks for the hints.

Again, this is much to change, and i dunno if i can find the time...But i will try.

Flip
FlipGer is online now   Reply With Quote
Reply

Bookmarks

Tags
colours, genre, guide

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
WebEPG issues ronald2oo2 WebEPG 28 2007-04-29 18:55
Any idea why WebEPG is putting the wrong date in tvguide.xml koach MediaPortal 1 Talk 3 2006-11-07 00:36
[WebEPG-BUG] Discards programs in the future because : 'Program starts in the past' ziphnor fixed 0.2.0.0 bugs 6 2006-10-17 22:32
Leadtek TV2000 RM Gives Errors - Can't do anything slmckenzie General Support 1 2006-09-15 07:35
A problem creating spanish TDT grabber for WEBEPG pegial WebEPG 7 2006-06-04 13:14


All times are GMT +1. The time now is 15:21.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden