My Score Center -Plugin for Mediaportal

Status
Not open for further replies.

juli13

Staff member
Administrator
Messages
10,198
04.09.2009

MyScoreCenter displays sports results from "almost" any web sites.

NEW in version 0.10:
  • Online synchronization
  • New Rule: IsNull
  • New Rule Formatting: MergeCells and ReplaceText
  • Cell Alignement: use '+' to center text
  • Paging for long score
  • Possibility to order the results in the configuration
  • Configuration: improve performance of the building of the tree and saving
 

juli13

Staff member
Administrator
Messages
10,198
My Score Center - version 0.11

My Score Center - version 0.11

Description
Since it was difficult to find a site which can give results for all sports, I decided to create a very generic plugin.
The principle is very simple, the plugin just renders an HTML table. A score is represented by an URL and an XPath expression to find the table in the page (see: XPath Tutorial to learn about Xpath).
It works for almost everything displayed in a table. For now the two things which are not working are tennis results and single-elimination tournament, like play-off. But I think we will have some times to solve this before the end of next season.

The scores are displayed by category (or sport) and then by league.
For example: football (or soccer) is a category then each national championship is a league and then for a league you can display the current standings, the last results and the top scorer.
But this is totally configurable, and you can for example decide to display results by countries, then by sports...

The default configuration file contains definitions for:

  • Football: all the major championships (19 leagues),
  • Basketball: NBA (regular season)
  • Motors: Formula 1 and WRC
  • Cycling (Tour de France)
  • Rugby: France only
  • Tennis: ATP and WTA ranking,
  • US Football: an example for college football standings
  • Baseball MLB
  • Cricket (ICC + last results)
  • Ice Heckey: NHL, DEL (Germany), France
  • World Records

Most of the results are from lequipe.fr which has the advantage of not changing the URL when a new season starts.

Here is a screen shot of the configuration dialog.
It also allows you to enter your own header row, set the size of the columns, and skip some rows.
When you set the size of the column, specify a negative number to align the column to the left and a positive number to align to the right.
The test button allows you to test your setting.
Note that an Xpath expression can return many tables. In this case they all of them will be displayed. So if it is not what you want be sure to give an Xpath that will return only the table you want.

For each items (category, league and score) you can have an icon in the configuration screen.

Skin controls:
There are two main controls:
the list control for the navigation
a textbox control which defines the display area and the font to use.

The following properties can be used to display names and icons:
#ScoreCenter.Title: the name of the plugin,
#ScoreCenter.Category: current category,
#ScoreCenter.CatIco: current category icon,
#ScoreCenter.League: current league
#ScoreCenter.LIco: current league icon,
#ScoreCenter.Results: current results,
#ScoreCenter.ScoreIco: current score icon.
#ScoreCenter.bd: the backdrop to display.

NEW version 0.11:
  • Rule: Format is not required to create a rule
  • Internationalzation of the plugin
  • Config: New option to include (default) or not the <theader> tags when parsing a table
  • Config: Display the total width of the headers to give an idea if it will fit on one page
  • Fix: pb with encoding value in the downloaded HTML
 

juli13

Staff member
Administrator
Messages
10,198
06.11.2009

NEW version 1.0:
  • Fix: issue with listcontrol page label.
  • Add Russian language file (thanks to bounguine).
  • New Propery "#ScoreCenter.Source" to display the name of the source (web site).
  • Download icons zip file and unzip it if icons are missing after update.
  • Remember navigation (reselect previous item when going back).
  • New Action Rule: skip line.

Installation
Download the file and install the plugin, then go to MediaPortal and the plugin will download the default configuration file from the online web site.
Important: with version 1.0 if you are using MediaPortal 1.0.* you need to download the Ionic.Zip library and copy it to the main directory of MediaPortal.
 

juli13

Staff member
Administrator
Messages
10,198
14.12.2009

NEW version 1.1:
  • Possibility to wrap text and to show new lines.
  • Config: Preview formatting in test tab.
  • Config: Set alignment by right-clicking a column in the grid.
  • Config: The 'Include THeader Rows' now includes (or excludes) the TFooter rows as well.
  • Config: Highlight the Save button when the score's setting has been changed.
  • Config: Improve performance when creating or copying a node.
  • Skin: Add a 'dummy' label control with ID=50. If the control is present in the skin then the list will be invisible when a score is displayed. This is feature is designed for small screen resolution.
 
Status
Not open for further replies.
Top