• 1
  • 18
  • 19
  • 20(current)
  • 21
  • 22
  • 28
[UPDATED] BBC Live Football Scores service
Tested latest version and everything seems to work well except from league "show league tables".

Code:
12:00:23 T:139798657816320 WARNING: CPythonInvoker(199, /storage/.kodi/addons/service.bbclivefootballscores/helper.py): the python script "/storage/.kodi/addons/service.bbclivefootballscores/helper.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui12ControlImageE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui12ControlImageE,N9XBMCAddon7xbmcgui13ControlButtonE,N14PythonBindings39XBMCAddon_xbmcgui_WindowDialog_DirectorE,N9XBMCAddon7xbmcgui12ControlLabelE
12:01:37 T:139798421640960 WARNING: CPythonInvoker(201, /storage/.kodi/addons/service.bbclivefootballscores/helper.py): the python script "/storage/.kodi/addons/service.bbclivefootballscores/helper.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon7xbmcgui12ControlImageE,N9XBMCAddon7xbmcgui12ControlLabelE,N9XBMCAddon7xbmcgui12ControlImageE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N14PythonBindings39XBMCAddon_xbmcgui_WindowDialog_DirectorE,N9XBMCAddon7xbmcgui13ControlButtonE
12:02:20 T:139798657816320 WARNING: CPythonInvoker(202, /storage/.kodi/addons/service.bbclivefootballscores/helper.py): the python script "/storage/.kodi/addons/service.bbclivefootballscores/helper.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui12ControlImageE,N14PythonBindings39XBMCAddon_xbmcgui_WindowDialog_DirectorE,N9XBMCAddon7xbmcgui12ControlLabelE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui12ControlImageE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE
12:02:23 T:139798400665344   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: invalid literal for int() with base 10: 'petition-'
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/service.bbclivefootballscores/helper.py", line 137, in <module>
                                                xlt = XBMCLeagueTable()
                                              File "/storage/.kodi/addons/service.bbclivefootballscores/resources/lib/league_tables.py", line 88, in __init__
                                                for x in self.league.getLeagues()
                                              File "/home/chewitt/LibreELEC.70-official/build.LibreELEC-Generic.x86_64-7.0.2/Python-2.7.11/.install_pkg/usr/lib/python2.7/collections.py", line 57, in __init__
                                              File "/home/chewitt/LibreELEC.70-official/build.LibreELEC-Generic.x86_64-7.0.2/Python-2.7.11/.install_pkg/usr/lib/python2.7/_abcoll.py", line 571, in update
                                              File "/storage/.kodi/addons/service.bbclivefootballscores/resources/lib/league_tables.py", line 89, in <genexpr>
                                                if int(x["id"][-9:])
                                            ValueError: invalid literal for int() with base 10: 'petition-'
                                            -->End of Python script error report<--

Also could the window be made less transparent? Its hard to see with the program add-on view behind it.

Image
Reply
Thanks, looks to be ok so far.

It doesn't seem to load competitions though past the europa league in the select competitions list. It says error loading data after that.
Reply
(2016-08-14, 13:03)zag Wrote: Tested latest version and everything seems to work well except from league "show league tables".

Code:
12:00:23 T:139798657816320 WARNING: CPythonInvoker(199, /storage/.kodi/addons/service.bbclivefootballscores/helper.py): the python script "/storage/.kodi/addons/service.bbclivefootballscores/helper.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui12ControlImageE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui12ControlImageE,N9XBMCAddon7xbmcgui13ControlButtonE,N14PythonBindings39XBMCAddon_xbmcgui_WindowDialog_DirectorE,N9XBMCAddon7xbmcgui12ControlLabelE
12:01:37 T:139798421640960 WARNING: CPythonInvoker(201, /storage/.kodi/addons/service.bbclivefootballscores/helper.py): the python script "/storage/.kodi/addons/service.bbclivefootballscores/helper.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon7xbmcgui12ControlImageE,N9XBMCAddon7xbmcgui12ControlLabelE,N9XBMCAddon7xbmcgui12ControlImageE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N14PythonBindings39XBMCAddon_xbmcgui_WindowDialog_DirectorE,N9XBMCAddon7xbmcgui13ControlButtonE
12:02:20 T:139798657816320 WARNING: CPythonInvoker(202, /storage/.kodi/addons/service.bbclivefootballscores/helper.py): the python script "/storage/.kodi/addons/service.bbclivefootballscores/helper.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui12ControlImageE,N14PythonBindings39XBMCAddon_xbmcgui_WindowDialog_DirectorE,N9XBMCAddon7xbmcgui12ControlLabelE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui12ControlImageE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE
12:02:23 T:139798400665344   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: invalid literal for int() with base 10: 'petition-'
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/service.bbclivefootballscores/helper.py", line 137, in <module>
                                                xlt = XBMCLeagueTable()
                                              File "/storage/.kodi/addons/service.bbclivefootballscores/resources/lib/league_tables.py", line 88, in __init__
                                                for x in self.league.getLeagues()
                                              File "/home/chewitt/LibreELEC.70-official/build.LibreELEC-Generic.x86_64-7.0.2/Python-2.7.11/.install_pkg/usr/lib/python2.7/collections.py", line 57, in __init__
                                              File "/home/chewitt/LibreELEC.70-official/build.LibreELEC-Generic.x86_64-7.0.2/Python-2.7.11/.install_pkg/usr/lib/python2.7/_abcoll.py", line 571, in update
                                              File "/storage/.kodi/addons/service.bbclivefootballscores/resources/lib/league_tables.py", line 89, in <genexpr>
                                                if int(x["id"][-9:])
                                            ValueError: invalid literal for int() with base 10: 'petition-'
                                            -->End of Python script error report<--

Also could the window be made less transparent? Its hard to see with the program add-on view behind it.

Image

I know what that error's for (BBC added groups to some of the drop down lists which breaks some of my scraping) - should be a quick fix.

Transparency - this isn't done my my script, I think it uses the default confluence skin files. Let me check the PyXBMCt thread and see if there are any tips for this.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
(2016-08-14, 13:11)moontan77 Wrote: Thanks, looks to be ok so far.

It doesn't seem to load competitions though past the europa league in the select competitions list. It says error loading data after that.

This is probably exactly the same error as the one above.

I probably won't be able to take a look until this evening.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
Both of your issues are caused by the same piece of code. I've fixed that bit.

I'm just trying to see if there's a quick fix to the transparency point and then I'll post the update after that.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
Update: there's no easy fix to the transparency point (see: http://forum.kodi.tv/showthread.php?tid=...pid2394370).

You could, I suppose, edit the ContentPanel.png file in the PyXBMCt folder (https://github.com/romanvm/script.module...tPanel.png) but this will impact everything that uses PyXBMCt on your machine.

Alternatively, I could rewrite the whole Tables, Fixtures, Results piece to use a new window rather than a Dialog, but I don't really fancy it...
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
Fix has been uploaded: https://github.com/elParaguayo/service.b...tag/v0.4.0

To be clear - this doesn't address the transparency issue.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
Hey, testing 0.4.2 tonight, I love that the goalscorer name is included but I've set it so no bookings/red cards show, checked settings.xml and it's set as false but it shows all bookings. Is there any way this can be fixed at some stage. Everything else working perfect tonight though, goalscorer alert ideal for my betting now haha!
Reply
To clarify, I had originally set it to show red cards only. Once the bookings came up on that, I switched it to show none but it continued to show. Only way of stopping it was to turn off "enable additional detailed information" but this then disables the goalscorer notification.
Reply
Yes - should be able to fix that. I've been meaning to change the way the script handles changes to settings so this is probably the kick I needed to do it.

As for the goalscorer, be warned, this doesn't always work! It relies on the name of the goalscorer being available when then script next updates but, typically, the BBC show the goal notification pretty quickly but the name of the goalscorer can follow later.

What I mean is, don't celebrate your winnings too soon!
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
Tbh tonight it's been spot on, using Championship and Champions League whilst comparing it with the LiveScore app to ensure the scorers are correct, 100% so far bud.

Only other thing I notice is missing in the competitions list are our domestic cups, EFL Cup/FA cup aren't in the list but are in the fixtures section. Would be great to see those included...although it probably won't matter when my Newcastle lot are dumped out by Cheltenham in a couple weeks haha!
Reply
OK - I'll add to the list.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
Thanks mate. Appreciate the work gone into this, it's an absolute belter!
Reply
If you wanted to be really clever you could show a picture of the player via a json name lookup on TSDB Wink

http://www.thesportsdb.com/api/v1/json/1...%20Welbeck

The field you want is strThumb or strCutout (transparent)

Could be a nice feature Big Grin
Reply
That would be pretty awesome and also pretty funny when my script gets it wrong.

Might be slightly limited by the current skin's dialog format (not all skins show icons) but I wonder if I could design custom notifications...
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
  • 1
  • 18
  • 19
  • 20(current)
  • 21
  • 22
  • 28

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