My Score Center - version 2.8.0 - 23 March 2013

Discussion in 'MediaPortal 1 Plugins' started by FredP42, July 13, 2009.

    • Premium Supporter

    FredP42 MP Donator

    MyScoreCenter is a plugin which displays sports results from "almost" any web sites.

    Last version = 2.8.0 (23 March 2013) Download
    Version only compatible with MediaPortal 1.3.

    Important see installation note below.

    Main Screen cat foot cat foot france
    results foot results tdf

    The source is available on GoogleCode.

    Release Notes

    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.

    Upgrade from 1.* to 2.0
    The schema of the settings has change in version 2.0 to introduce type of scores.
    Don't panic the settings will not be erased since the settings file for version 2 is MyScoreCenter2.Settings.xml.
    You will need to re-enter your settings with the configuration screen.
    Open the old file settings with a text editor MyScoreCenter.Settings.xml and re-use the settings (URL, XPath expression ...) to create new scores (use the Generic type which correspond to the old format).

    See instructions on the wiki page.


    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 HTML tables : 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.

    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 many competitions, including:
    • Football: all the major championships (29 leagues) + champions league and world cup qualifications,
    • Basketball: NBA (regular season), Euroleague
    • Motors: Formula 1, WRC, Nascar, Moto GP
    • Cycling (Tour de France, Giro, Vuelta)
    • Rugby: France, England, Tri Nations, SuperLeague, 6 Nations, European Cups
    • Tennis: ATP and WTA ranking, all grand slams (history tables)
    • US Football: college football and NFL standings
    • Baseball MLB
    • Cricket (ICC + last results)
    • Ice Hockey: NHL, DEL (Germany), France
    • World Records
    • Skiing: world cup calendar and standings
    Here is a screen shot of the configuration dialog.
    ConfigScreen

    It also allows you to enter your own header row, set the size of the columns, enter rules to format the score (for example highlight your team).
    When you set the size of the column, add a minus sign to align the column to the left and a plus sign to center it and nothing 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 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.Results: the current results path (ie: Level 1 > Level 2 > Level 3 ...),
    • #ScoreCenter.Ico1, #ScoreCenter.Ico2, #ScoreCenter.Ico3 ...: current score icon for level n,
    • #ScoreCenter.bd: the backdrop to display,
    • #ScoreCenter.Source: the source (web site) of the score.
    • #ScoreCenter.Live: the live status (on or off).
    • #ScoreCenter.LiveOn: a flag to give the live status 0 = OFF, 1 = ON.
    • #ScoreCenter.LiveIcon: the icon to display for live status.
    • #ScoreCenter.Round: the current round (used for scores allowing navigation through rounds).
    This allows you for example to add a backdrop that matches the current sport.
    Personally, I used backdrops from Olympic Games 2008 - Free Wallpapers

    Football_with_backdrop Formula 1


    Any critics on the plugin or the skin implementation are welcome.
    • Like Like x 34
    • Premium Supporter

    FredP42 Thread Starter MP Donator

    You can use this post to share you settings or ask help on XPath expression.
    You can also share icons or backdrops.

    Last version of the settings file is available here
    MyScoreCenter (MyScoreCenter)

    You will also find a German version and the icons pack.
  1. MadMagpie Portal Pro

    System Specs
    Sport is the forgotten genre in MP, glad to see anything to do with sport being developed.
    • Team MediaPortal
    • Administrator

    catavolt Design Group Manager

    System Specs
    Hi FredP42, a big :D for this plugin - long awaited, finally there!

    Here the screenshots for PureVisionHD and the respective xml. Feel free to incorporate it in your next release!

    The scorecenter.jpg goes into ....\skin\PureVisionHD\Media and works as the background.

    Attached Files:

  2. el_gato Portal Pro

    System Specs
    nice plugin, been waiting a long time for something like this, thanks! also the things on your todo-list sound great, highlight favorite team and team logos... i'm looking forward for future releases :D

    tried it myself with this xpath stuff but wasn't really successful at first, but later with another website i got it working for a regional league here in germany...

    works well so far, the only thing i noticed was, that for the new created "hessenliga" the little icons are missing (national flag) and if i rename "ranking" to its german translation or anything else, the table-icon is also missing... so maybe this would be a thing for future releases to have an option to choose an icon or leave it blank... anyway, very nice plugin!
    • Premium Supporter

    FredP42 Thread Starter MP Donator

    Wow that was quick. Of course, I will include it in the next release. Thank you.

    You put a fix background. But you saw that you can have a background matching the current sport (it is commented in the blue3(s) skin files).
    Also if there is no sport selected (home screen) the current category will be "_" so you can have a background called "_.jpg" for your home page.

    That's the point of the implementation. There are plenty of website giving sport scores, so you should always find one with what you want.
    Don't hesitate to share your entries or ask for help for XPath expressions. Normally looking at the source of the page and then using the test button should do it. I also thought to add an import/export feature to make it easy to exchange settings.

    For the icon, yes the icon needs to have the "exact" name as the item (category/league/score). You can find them in your thumbs directory (C:\ProgramData\Team MediaPortal\MediaPortal\thumbs on Vista or "Documents and Settings" on XP). For the moment they are just stored by category. It means the icon name is unique across a category.
    I'm using icons from www.iconarchive.com. Where there are a lot of team icons.

    I definitely think I will try to manage the icon from the configuration (it will be easier if someone just want to rename an item).
    • Team MediaPortal
    • Administrator

    catavolt Design Group Manager

    System Specs
    I saw the possibility to use different backgrounds - but to keep the skin as small as possible (especially with regard to the size of the cache folder) I decided not to use this feature. Anyway - well thought and designed! :D
  3. warriv666 Portal Member

    Very nice work! Trying to see if I can get it skinned appropriately for my StreamedMP view. Love it... especially the customization possibilities.
  4. Rico Portal Pro

    wooooot finaly the score plugin is here

    gonna make a skin file for black and white skin for it
    so stay tuned :)
  5. warriv666 Portal Member

    How can I extract the table on this page (right side) with the title "Huidige Rangschikking"? There are a lot of other score listings on this website that I want to have in the plugin and they all look alike. Can you help?

    SportWereld - Sportuitslagen

Share This Page

Users Viewing Thread (Users: 1, Guests: 0)

  1. fischy667
Running the latest version?

V1.3.0 FINAL - released March 2013
Releasenews | Download
Changelog
 | Requirements
HTPC
Team-MediaPortal
 
About
Contact |  Press
Partners