home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Skins
TV Guide Genre Colours
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="FlipGer" data-source="post: 28407" data-attributes="member: 10293"><p>Hi,</p><p></p><p>ok a progress report and some questions for the way to go. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>I am at a point where I have to choose between flexibility or data consistence.</p><p></p><p>What have I done so far?</p><p></p><p><strong>1) I made a XML called TVGenreMapping.xml.</strong></p><p>[code]<?xml version="1.0" encoding="utf-8"?></p><p><genres></p><p> <genre name="Movie/Film"></p><p> <mapping>movie</mapping></p><p> <mapping>film</mapping></p><p> </genre></p><p> <genre name="Series"></p><p> <mapping>serie</mapping></p><p> </genre></p><p> <genre name="Daily Soap"></p><p> <mapping>soap</mapping></p><p> </genre></p><p> <genre name="Report/Documentary"></p><p> <mapping>report</mapping></p><p> <mapping>documentary</mapping></p><p> </genre></p><p></genres>[/code]</p><p></p><p>With this XML I map the main genres "name" with keywords. Eg. contains "Spielfilm" the keyword "film" and will be mapped to the genre "Movie/Film". This is done on import and therefore before adding the genre to the TVdatabase!</p><p>Cons:</p><p>- The user will loose information. I can allready hear some people complaining, that they loose there beloved genre infos.</p><p>Pros:</p><p>- The genre table will be kept simple. I did have nearly 1000 genre entries, now I have "only" 10, what made the TVGuide much faster</p><p></p><p><strong>2) I made a XML file for the color mapping in the skins directory.</strong></p><p>[code]<?xml version="1.0" encoding="utf-8"?></p><p><profile></p><p> <section name="GenreColors"></p><p> <entry name="Series">#FF0000</entry></p><p> <entry name="Movie/Film">#00FF00</entry></p><p> <entry name="Report/Documentary">#0000FF</entry></p><p> <entry name="Dail Soap">#00FFFF</entry></p><p> </section></p><p></profile>[/code]</p><p></p><p><strong>3) ToDo</strong></p><p>- Translation, user interface for changing colors and keywords</p><p></p><p><u><strong>So, here are some questions:</strong></u></p><p>1) What do you think about keeping the original genre infos somehow (database, etc.)?</p><p>2) I am thinking about to merge these two files into one, to prevent data inconsistence. This could be done in two ways:</p><p>a) Having one XML file in the main directory.</p><p>- Pro: Maximum data consistence</p><p>- Con: The colors can not be changed for each skin</p><p>b) Having separate XML files in each skin directory.</p><p>- Pro: The colors can be changed for each skin</p><p>- Con: Possible data inconsistence</p><p></p><p>Flip</p></blockquote><p></p>
[QUOTE="FlipGer, post: 28407, member: 10293"] Hi, ok a progress report and some questions for the way to go. :) I am at a point where I have to choose between flexibility or data consistence. What have I done so far? [b]1) I made a XML called TVGenreMapping.xml.[/b] [code]<?xml version="1.0" encoding="utf-8"?> <genres> <genre name="Movie/Film"> <mapping>movie</mapping> <mapping>film</mapping> </genre> <genre name="Series"> <mapping>serie</mapping> </genre> <genre name="Daily Soap"> <mapping>soap</mapping> </genre> <genre name="Report/Documentary"> <mapping>report</mapping> <mapping>documentary</mapping> </genre> </genres>[/code] With this XML I map the main genres "name" with keywords. Eg. contains "Spielfilm" the keyword "film" and will be mapped to the genre "Movie/Film". This is done on import and therefore before adding the genre to the TVdatabase! Cons: - The user will loose information. I can allready hear some people complaining, that they loose there beloved genre infos. Pros: - The genre table will be kept simple. I did have nearly 1000 genre entries, now I have "only" 10, what made the TVGuide much faster [b]2) I made a XML file for the color mapping in the skins directory.[/b] [code]<?xml version="1.0" encoding="utf-8"?> <profile> <section name="GenreColors"> <entry name="Series">#FF0000</entry> <entry name="Movie/Film">#00FF00</entry> <entry name="Report/Documentary">#0000FF</entry> <entry name="Dail Soap">#00FFFF</entry> </section> </profile>[/code] [b]3) ToDo[/b] - Translation, user interface for changing colors and keywords [u][b]So, here are some questions:[/b][/u] 1) What do you think about keeping the original genre infos somehow (database, etc.)? 2) I am thinking about to merge these two files into one, to prevent data inconsistence. This could be done in two ways: a) Having one XML file in the main directory. - Pro: Maximum data consistence - Con: The colors can not be changed for each skin b) Having separate XML files in each skin directory. - Pro: The colors can be changed for each skin - Con: Possible data inconsistence Flip [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Skins
TV Guide Genre Colours
Contact us
RSS
Top
Bottom