PadreDeFamilia

QVIART DUAL : SATELITE 4K ANDROID 9.0 DVB-S2X+DVB-T2+DVB-C+IPTV

Chincheta Autor Tema: My Score Center- Plugin for MediaPortal  (Leído 5232 veces)

Registrado:
05/04/2008
Gracias:
1276/1708
Mensajes
23694
My Score Center- Plugin for MediaPortal

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

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 configuration file included in the installer 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)

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 in version 0.9:


    * Management of icons from the configuration
    * Import/Export to exchange settings
    * Set the name of the plugin in configuration
    * Rename categories/leaguea in the tree
    * Enable checkbox in the tree to disabel/enable a full category
    * Context menu in the plugin to deactivate elements
    * Context menu to enable the "Auto Size" mode (in case the website changes the table)
    * Property to set the encoding of the web page, button to go visit the web page from the configuration
    * Variable URL (with date elements like {M_yyyy} ==> 8_2009)
    * XPath can include any type of elements (not just tables), non table element are displayed on a single line (for example a list of div elements)
    * Additional field to retrieve a specific element in the XPath result
    * Post processing rules to format results

« Última modificación: 06/11/2009, 14:24 por josagi »
Registrado:
05/04/2008
Gracias:
1276/1708
Mensajes
23694
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    :D    isplay 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


[archivo adjunto borrado por el administrador]
« Última modificación: 06/11/2009, 14:24 por josagi »
Registrado:
05/04/2008
Gracias:
1276/1708
Mensajes
23694
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.
« Última modificación: 14/12/2009, 22:23 por josagi »
Registrado:
05/04/2008
Gracias:
1276/1708
Mensajes
23694
14.12.2009

NEW version 1.1:


    * Possibility to wrap text and to show new lines.
    * Config    :P    review 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.


[archivo adjunto borrado por el administrador]

QVIART DUAL : SATELITE 4K ANDROID 9.0 DVB-S2X+DVB-T2+DVB-C+IPTV

 



PadreDeFamilia
!! ADVERTENCIAS !!: Las informaciones aquí publicadas NO CONTIENEN KEYS para la decodificación de ningún sistema: NO SON OPERATIVOS en sistemas SAT que precisen de su correspondiente suscripción. ESTA TOTALMENTE PROHIBIDO EL USO DE ESTAS INFORMACIONES PARA LA MODIFICACIÓN O DEFRAUDACIÓN DE SISTEMAS DE ACCESO CONDICIONAL. EN ESTOS FOROS NO SE PERMITE LA PUBLICACIÓN DE INFORMACIONES ILEGALES POR PARTE DE LOS USUARIOS. EN CASO DE DETECTARSE ESTE TIPO DE INFORMACIONES, LOS USUARIOS SERÁN EXCLUIDOS DE ESTAS PÁGINAS.
PROHIBIDA LA PUBLICACIÓN DE ENLACES A FIRMWARES ILEGALES
LOS FOROS NO SON MONITORIZADOS DE MANERA CONSTANTE, CUALQUIER INFORMACIÓN QUE PUEDAS CONSIDERAR ILEGAL REPORTALA A LA ADMINISTACIÓN DEL FORO