• 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 28
[UPDATED] BBC Live Football Scores service
#91
(2015-01-08, 09:45)patria o muerte Wrote: Good morning El Paraguayo,
latest version of bbclfs doesn't want to work.no problems with older version.
here is my log:

http://pastebin.com/sbpacpkK

thank you
Well that's funny. It's crashing on a debug line. It also seems to imply you've not selected any leagues to watch. Have you gone to settings and selected some leagues?
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#92
(2015-01-08, 01:30)zag Wrote: Just out of coding interest how does the python scraper work?

When I tested scraping the bbc results page it was quite hard work as they didnt list the date for each match.

Does your python code get around this?

Sorry if I'm being lazy but I work in PHP normally Wink
For live scores, the scraper takes the ID of the selected leagues (the source data is easily pulled from drop down boxes on the site) and then loads a page that summarises the live score for each match. If necessary, the scraper can then load a detailed page for each match to scrape details of goal scorers, bookings and match time.

League tables is easier as it just scrapes the league table page and, where available, the last 10 matches (i.e. the data behind the red/green/grey boxes).

I haven't set up a class to scrape the results page, but looking at the source it doesn't look too difficult so I'd be happy to have a crack at coding it if you're interested.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#93
(2015-01-08, 10:51)el_Paraguayo Wrote:
(2015-01-08, 09:45)patria o muerte Wrote: Good morning El Paraguayo,
latest version of bbclfs doesn't want to work.no problems with older version.
here is my log:

http://pastebin.com/sbpacpkK

thank you
Well that's funny. It's crashing on a debug line. It also seems to imply you've not selected any leagues to watch. Have you gone to settings and selected some leagues?

Yes,i selected Italian serie a.
Reply
#94
Then that error message shouldn't be right...

Are you able to edit the source code yourself? If so, can you comment out this line: https://github.com/elParaguayo/service.b...lt.py#L223 (i.e. just put a # at the start of the line).

It's crashing on a line that's not particularly helpful for identifying where the problem is.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#95
(2015-01-08, 09:45)patria o muerte Wrote: Good morning El Paraguayo,
latest version of bbclfs doesn't want to work.no problems with older version.
here is my log:

http://pastebin.com/sbpacpkK

thank you
Aha - I think I know what this is. Looks like it's an issue if you're running a version of python < 2.7. I can build in some backwards compatibility for this - shouldn't require too many changes.

Will see if I can do it tonight.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#96
Thank you amigo!
Reply
#97
(2015-01-08, 17:51)patria o muerte Wrote: Thank you amigo!
Can you try the latest version please?
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#98
Ok,
the error massage disappear.I can't test the functionality because it seems there are no games tonight.
thanks.
Reply
#99
No problem. Just let me know.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
Hi El Paraguayo,
i'm going to test your script tonight.
are new features already working by default?
thanks.
Reply
Depends what you mean. The notification service should run ok. The league tables and match detail are triggered by sending the appropriate command - see post #1.

If you have any thoughts as to how you'd like them to work then let me know.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
You could probably add some "Action type-settings" on your script settings to trigger the league tables and match details. It would be more easily accessed by people without much "kodi experience". I'm suggesting this without checking at all if it is already available.

something like this

Code:
<setting id="show_tables" type="action" label="Show league tables" action="XBMC.RunScript($CWD/lib/tables.py,args)" />
Reply
Yeah - that's the basic plan but it's not perfect as it's hidden in settings.

Alternative idea is to have a sister add-on that sits in Programs that can be called manually without needing to bind extra keys or having to locate the service's settings page.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
We'll make that happen someday Big Grin
Reply
Yeah, I'll love that too Big Grin
Yeah, Me, Myself, and I, The Three Musketeers
Image
Reply
  • 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 28

Logout Mark Read Team Forum Stats Members Help
[UPDATED] BBC Live Football Scores service3