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