home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
My Score Center - version 2.12.0.0 - 4 May 2014 (for MP 1.6/1.7)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="FredP42" data-source="post: 498775" data-attributes="member: 91354"><p>Hosting the file is not a pb, I just upload it on <a href="http://scorecenter.googlecode.com/files/MyScoreCenter.Settings.xml" target="_blank">Google Code</a>.</p><p></p><p>My idea so far:</p><ul> <li data-xf-list-type="ul">Add a setting to specify the url of the file and import options<ul> <li data-xf-list-type="ul">New Only</li> <li data-xf-list-type="ul">New + Merge</li> </ul></li> <li data-xf-list-type="ul">When the plugin starts dowload the file and import it</li> <li data-xf-list-type="ul">Import using the current settings</li> </ul><p></p><p>Merge will have the same options as the import:</p><p>- names: category, league, name </p><p>- url: url, xpath, ...</p><p>- rules: ...</p><p></p><p>For example: if a an url change by setting merge (url only), if the url is fixed in the online file the plugin will refresh it.</p><p></p><p>The pb with this solution is that the plugin will dowload the file everytime it starts. The file is not big (less than 40kb) but it may grow, so maybe we will need to switch to a database so that the plugin can ask for new or updated items.</p><p></p><p></p><p></p><p>The idea behind is that:</p><p>- there are a lot of web sites giving sport scores</p><p>- it is not possible to handle everything</p><p>- web site changes</p><p></p><p>Of course it would be nice if a site will provide results in an XML format, but it does not exists (some example were given in an another posts but that all I found).</p><p></p><p>XPath seems to me a good way to parse the html. It is not complicated the w3school tutorial is a good way to learn it.</p><p>But you can also ask other users, I will be happy to try to help you.</p><p>Give us the urls and what your looking in the page (maybe describe it if it is in greek).</p><p></p><p>The new version allows you to disable the score you don't want to see from MediaPoral by selecting the element and using the context menu.</p></blockquote><p></p>
[QUOTE="FredP42, post: 498775, member: 91354"] Hosting the file is not a pb, I just upload it on [URL="http://scorecenter.googlecode.com/files/MyScoreCenter.Settings.xml"]Google Code[/URL]. My idea so far: [LIST] [*]Add a setting to specify the url of the file and import options [LIST] [*]New Only [*]New + Merge [/LIST] [*]When the plugin starts dowload the file and import it [*]Import using the current settings [/LIST] Merge will have the same options as the import: - names: category, league, name - url: url, xpath, ... - rules: ... For example: if a an url change by setting merge (url only), if the url is fixed in the online file the plugin will refresh it. The pb with this solution is that the plugin will dowload the file everytime it starts. The file is not big (less than 40kb) but it may grow, so maybe we will need to switch to a database so that the plugin can ask for new or updated items. The idea behind is that: - there are a lot of web sites giving sport scores - it is not possible to handle everything - web site changes Of course it would be nice if a site will provide results in an XML format, but it does not exists (some example were given in an another posts but that all I found). XPath seems to me a good way to parse the html. It is not complicated the w3school tutorial is a good way to learn it. But you can also ask other users, I will be happy to try to help you. Give us the urls and what your looking in the page (maybe describe it if it is in greek). The new version allows you to disable the score you don't want to see from MediaPoral by selecting the element and using the context menu. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
My Score Center - version 2.12.0.0 - 4 May 2014 (for MP 1.6/1.7)
Contact us
RSS
Top
Bottom