My Score Center - version 2.12.0.0 - 4 May 2014 (for MP 1.6/1.7) (1 Viewer)

Rico

Portal Pro
December 23, 2008
188
12
Straelen
Home Country
Germany Germany
Hi Fred

Is it possible to implent a import/export function so that users can post there leagues and the configs ?



i added in the config The Whole Dutch Eredivisie Stats like:

Assists
Cards
Program
Keepers with no goals against Table
Ranking
Ranking Teams Lostpoints
Topscorers
Results
Full Programm 2009-2010

See attached Screenshot




your plugin really ownz
still have some small suggenstion will post theme in the upcoming days


Thanks for the Super Work
 

Attachments

  • Score Center Eredivisie.jpg
    Score Center Eredivisie.jpg
    271.9 KB

FredP42

MP Donator
  • Premium Supporter
  • May 2, 2009
    237
    243
    78
    Home Country
    France France
    Hello everyone, I'm back from my vacation :)

    GREAT! You did it. I also try to make a plugin like yours, but gabe up ): - I have not enough skills.
    SourceForge.net Repository - [mp-plugins] Index of /trunk/plugins/Sport

    Where can I find your Code? Maybe you can upload it to SF.net
    https://forum.team-mediaportal.com/mediaportal-plugins-47/plugin-development-svn-15863/

    I will publish the code soon. In fact I had a look at yours.

    Would love to see US Baseball added to this.

    The espn page will do it. It is a big table so the expression is just //table and then you can skip lines and use the max lines field to separate the different leagues. I have updated the settings file in the second post.
    http://espn.go.com/mlb/standings


    Please add cricket!!! Especially with the ashes series.

    I don't know anything about cricket, and the only thing I know about the ashes is what I read in the "Hitchhiker's Guide To The Galaxy" :D
    If you know a website which is giving the score in a table it will work and I would be happy to help you to find the correct XPath expression.

    Again, for now the plugin works well for standings for a season event but not really for a short event (maybe short is not a good adjective for a cricket event :p)

    Is it possible to implent a import/export function so that users can post there leagues and the configs ?

    still have some small suggenstion will post theme in the upcoming days

    The export/import feature is in the TODO list and will probably be in the next release (give me 2-3 weeks).

    Don't hesitate to give suggestions. Especially on the configuration screens which can be improved.

    Some of my ideas:
    - add check boxes in the tree to enable/disable elements.
    - in the plugin: disable a score from context menu.
    - put a setting file online and update (or not) directly from the plugin.
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,363
    10,399
    Königstein (Taunus)
    Home Country
    Germany Germany
    Hi FredP42, today wanted to view the Bundesliga scores and got this:
    Any suggestions? (Reinstalled scorecenter, but no luck...)
     

    Attachments

    • Image1.jpg
      Image1.jpg
      80.1 KB

    FredP42

    MP Donator
  • Premium Supporter
  • May 2, 2009
    237
    243
    78
    Home Country
    France France
    Hi FredP42, today wanted to view the Bundesliga scores and got this:
    Any suggestions? (Reinstalled scorecenter, but no luck...)

    The error indicates a missing constructor for the GUILabelControl.
    Is this happening only for this item or for all?
    Is it happening in the configuration screen with the test button?

    Since I saw you updated your skin for 1.1.0, I supposed you are using 1.1.0 alpha. I haven't try with this version.
    I'm investigating, maybe they changed the API :confused:

    ----------------------
    Otherwise, I worked yesterday on the next version.
    I already implemented:
    - config: checkbox in the tree to/enable disable (allow you to disable a full branch)
    - config: rename category and league directly in the tree
    - plugin: add a context menu to hide the current element (which can be re-enable in config)
    - plugin: add a context menu to ignore the size of the columns (useful if an extra column is added in the table)
    - plugin: add a context menu to clear the cache (the plugin is actually caching all the web pages)
    - (almost) managing images from the configuration

    I had to change the xml schema, but you should not loose your changes (a little manual migration will be required).

    I'm also starting to work on the post-processing feature, here is what I'm planing:
    - config: definition of styles: for the moment color only, maybe the font
    - A rule will be composed of:
    - an element: a cell or a column
    - a test: equals, contains, greater than ....
    - a test value: 3
    - an action: formal cell, format line (select a style)

    Example (there will be a GUI, the text is just to explain):
    * Highlight a team: if cell = 'Manchester' then Format with Style1
    * Show 3 first teams (qualifying for Champion's League): if First Cell <= 3 then Format Line with Style2

    Tell me if you can think of other stuff for this feature: type of test or action ...
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,363
    10,399
    Königstein (Taunus)
    Home Country
    Germany Germany
    Hi Fred, in MPConfig -> testing is OK, I see all the reults. In MP itself I see the error described above - and there was an API change... so it seems some work for you....
     

    FredP42

    MP Donator
  • Premium Supporter
  • May 2, 2009
    237
    243
    78
    Home Country
    France France
    Hello Catavolt,
    sorry I didn't answer sooner I was having some trouble with my internet connection.

    I don't want to install the 1.1 alpha version since I have only one computer which is also my running HTPC. I tried to search about the change in the API but I found nothing in the code. For the next version I changed the way I'm creating the control and I'm using a different constructor than the missing one.

    Otherwise I'm almost done with the evolution on the plugin:
    - New parsing rules: you can include in the XPath expression other thing than tables
    - Formatting rules
    - Import/Export feature
    - New scores: football, baseball, and even some cricket

    I hope I can have something for tomorrow.
     

    joz

    Portal Pro
    March 17, 2008
    1,353
    306
    Home Country
    Netherlands Netherlands
    Hey Rico,

    Could you post your settings file for me?
    Would be saving me a lot of work. :D in advance ;)

    And btw, awesome plug!
     

    ederson13

    Portal Member
    December 9, 2008
    40
    3
    First of all many thanks for this plugin.

    It was a little difficult at the begining to understand how XPath works but once you get it you can fetch almost everything \

    But i have a small problem .... :D Many of the sites i`m using to get the data use Greek as encoding and not utf
    Is there any way change this ?
     

    FredP42

    MP Donator
  • Premium Supporter
  • May 2, 2009
    237
    243
    78
    Home Country
    France France
    But i have a small problem .... :D Many of the sites i`m using to get the data use Greek as encoding and not utf
    Is there any way change this ?

    Yes, I already thought about this and it will be possible to change the encoding in the next version (soon :D). I was planning to release it as an hidden feature, but since you asked for it I'm going to add a setting in the UI to specify the encoding.
    Can you give me an url so I can test it?
     

    Users who are viewing this thread

    Top Bottom