bugatsinho / bugatsinho.github.io

Bugatsinho New Repository
GNU General Public License v3.0
78 stars 41 forks source link

[SportHD] Live events list is completely empty #120

Closed pitsi closed 6 months ago

pitsi commented 1 year ago

As mentioned in the title, the live events list returns an empty output inside kodi. This is what the log says

2023-05-29 14:23:08.171 T:731      INFO <general>: initializing python engine.
2023-05-29 14:23:08.418 T:731      INFO <general>: CPythonInvoker(12, /storage/.kodi/addons/plugin.video.sporthdme/default.py): script successfully run
2023-05-29 14:23:08.731 T:731   WARNING <general>: CPythonInvoker(12, /storage/.kodi/addons/plugin.video.sporthdme/default.py): the python script "/storage/.kodi/addons/plugin.video.sporthdme/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon7xbmcgui6DialogE
2023-05-29 14:23:08.731 T:731      INFO <general>: Python interpreter stopped
2023-05-29 14:23:11.002 T:735      INFO <general>: initializing python engine.
2023-05-29 14:23:11.933 T:735      INFO <general>: CPythonInvoker(13, /storage/.kodi/addons/plugin.video.sporthdme/default.py): script successfully run
2023-05-29 14:23:12.249 T:735   WARNING <general>: CPythonInvoker(13, /storage/.kodi/addons/plugin.video.sporthdme/default.py): the python script "/storage/.kodi/addons/plugin.video.sporthdme/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon7xbmcgui6DialogE
2023-05-29 14:23:12.249 T:735      INFO <general>: Python interpreter stopped

Sporthd 0.1.32 on kodi 19.5 and 18.9 (libreelec x64 10.0.4 and 9.2.6 respectively).

bugatsinho commented 1 year ago

Check Twitter or telegram for updates about the addon. Use alternative

Sent from Proton Mail for iOS

On Mon, May 29, 2023 at 06:33, pitsi @.***(mailto:On Mon, May 29, 2023 at 06:33, pitsi < wrote:

As mentioned in the title, the live events list returns an empty output inside kodi. This is what the log says

2023-05-29 14:23:08.171 T:731 INFO : initializing python engine. 2023-05-29 14:23:08.418 T:731 INFO : CPythonInvoker(12, /storage/.kodi/addons/plugin.video.sporthdme/default.py): script successfully run 2023-05-29 14:23:08.731 T:731 WARNING : CPythonInvoker(12, /storage/.kodi/addons/plugin.video.sporthdme/default.py): the python script "/storage/.kodi/addons/plugin.video.sporthdme/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon7xbmcgui6DialogE 2023-05-29 14:23:08.731 T:731 INFO : Python interpreter stopped 2023-05-29 14:23:11.002 T:735 INFO : initializing python engine. 2023-05-29 14:23:11.933 T:735 INFO : CPythonInvoker(13, /storage/.kodi/addons/plugin.video.sporthdme/default.py): script successfully run 2023-05-29 14:23:12.249 T:735 WARNING : CPythonInvoker(13, /storage/.kodi/addons/plugin.video.sporthdme/default.py): the python script "/storage/.kodi/addons/plugin.video.sporthdme/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon7xbmcgui6DialogE 2023-05-29 14:23:12.249 T:735 INFO : Python interpreter stopped

Sporthd 0.1.32 on kodi 19.5 and 18.9 (libreelec x64 10.0.4 and 9.2.6 respectively).

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

pitsi commented 1 year ago

Well, I am not on telegram and, no offence, I had to search a lot on your twitter profile to find any info about the addon. It's ok though, I can wait :)

bugatsinho commented 1 year ago

all my tweets about my addons have #hashtags like #SPORTHD #CARTOONSGR to make your search easier. also about SPORTHD image meaning the website have the view that can be scraped using the alternative view(2nd choice in the addon menu)

pitsi commented 1 year ago

The live events list is full again. I don't know what changed on the site's side or when, but it now works as it should. However, trying to play a stream results in this error on kodi 18 (my le 9.2.6 x64 installation this time). I don't know if it is related to some pesky character in the name of the game, but it surely is related to python2 because it does not happen on kodi 19 (le 10.0.4 on the same system).

Feel free to open a new issue with it if needed.

2023-08-02 19:05:29.968 T:140232161371904   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnicodeEncodeError'>
                                            Error Contents: 'ascii' codec can't encode character u'\u2630' in position 15604: ordinal not in range(128)
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 722, in <module>
                                                get_stream(url)
                                              File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 319, in get_stream
                                                return resolve(host, name)
                                              File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 349, in resolve
                                                xbmc.log('HTMLLLLL: {}'.format(html))
                                            UnicodeEncodeError: 'ascii' codec can't encode character u'\u2630' in position 15604: ordinal not in range(128)
                                            -->End of Python script error report<--
bugatsinho commented 1 year ago

Which link? Cause only 1l1l and l1l1 streams work. Need to create resolvers for the new ones

Sent from Proton Mail for iOS

On Wed, Aug 2, 2023 at 11:11, pitsi @.***(mailto:On Wed, Aug 2, 2023 at 11:11, pitsi < wrote:

The live events list is full again. I don't know what changed on the site's side or when, but it now works as it should. However, trying to play a stream results in this error on kodi 18 (my le 9.2.6 x64 installation this time). I don't know if it is related to some pesky character in the name of the game, but it surely is related to python2 because it does not happen on kodi 19 (le 10.0.4 on the same system).

2023-08-02 19:05:29.968 T:140232161371904 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

  • NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.UnicodeEncodeError'> Error Contents: 'ascii' codec can't encode character u'☰' in position 15604: ordinal not in range(128) Traceback (most recent call last): File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 722, in get_stream(url) File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 319, in get_stream return resolve(host, name) File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 349, in resolve xbmc.log('HTMLLLLL: {}'.format(html)) UnicodeEncodeError: 'ascii' codec can't encode character u'☰' in position 15604: ordinal not in range(128) -->End of Python script error report<--

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

pitsi commented 1 year ago

I did not notice that, sorry. All I remember is it was a football game at 8pm local time and that I tried 5 or so random links from it.

pitsi commented 1 year ago

Closing because what I mentioned at the start now works as it should. I will open a new one once I get the encoding issue again. However, since I watch sports very rarely, this may never happen :P

pitsi commented 9 months ago

Goodmorning and merry xmas to everyone :)

I am reopeniong this because the the upgrade to 0.1.37 broke the "alternative live sports" list. Up until 0.1.36, the menu entry would work, although it would be completely blank. But after the upgrade it pops this error, on kodi 18, 19 and 20.

2023-12-25 12:12:01.840 T:140711139682048   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: not expecting type '<type 'NoneType'>'
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 806, in <module>
                                                get_new_events(url)
                                              File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 237, in get_new_events
                                                data = six.ensure_text(client.request(url, headers=headers))
                                              File "/storage/.kodi/addons/script.module.six/lib/six.py", line 939, in ensure_text
                                                raise TypeError("not expecting type '%s'" % type(s))
                                            TypeError: not expecting type '<type 'NoneType'>'
                                            -->End of Python script error report<--
2023-12-25 12:12:01.949 T:140712355682048   ERROR: GetDirectory - Error getting plugin://plugin.video.sporthdme/?description&iconimage=%2fstorage%2f.kodi%2faddons%2fplugin.video.sporthdme%2ficon.png&mode=15&name=%5bB%5d%5bCOLOR%20gold%5dAlternative%20LIVE%20EVENTS%5b%2fCOLOR%5d%5b%2fB%5d&url=https%3a%2f%2fliveon.sx%2fprogram
2023-12-25 12:12:01.952 T:140712528230528   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.sporthdme/?description&iconimage=%2fstorage%2f.kodi%2faddons%2fplugin.video.sporthdme%2ficon.png&mode=15&name=%5bB%5d%5bCOLOR%20gold%5dAlternative%20LIVE%20EVENTS%5b%2fCOLOR%5d%5b%2fB%5d&url=https%3a%2f%2fliveon.sx%2fprogram) failed

The domain mentioned at the end does open in a web browser, although it is a blank html index page. Its /program subfolder leads to a 404.

bugatsinho commented 9 months ago

Last update was only about adding the resolver of the new streams not about the alternative view. So Something changed at the source code. Thanks

Sent from Proton Mail for iOS

On Mon, Dec 25, 2023 at 05:18, pitsi @.***(mailto:On Mon, Dec 25, 2023 at 05:18, pitsi < wrote:

Goodmorning and merry xmas to everyone :)

I am reopeniong this because the the upgrade to 0.1.37 broke the "alternative live sports" list. Up until 0.1.36, the menu entry would work, although it would be completely blank. But after the upgrade it pops this error, on kodi 18, 19 and 20.

2023-12-25 12:12:01.840 T:140711139682048 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

  • NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.TypeError'> Error Contents: not expecting type '<type 'NoneType'>' Traceback (most recent call last): File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 806, in get_new_events(url) File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 237, in get_new_events data = six.ensure_text(client.request(url, headers=headers)) File "/storage/.kodi/addons/script.module.six/lib/six.py", line 939, in ensure_text raise TypeError("not expecting type '%s'" % type(s)) TypeError: not expecting type '<type 'NoneType'>' -->End of Python script error report<-- 2023-12-25 12:12:01.949 T:140712355682048 ERROR: GetDirectory - Error getting plugin://plugin.video.sporthdme/?description&iconimage=%2fstorage%2f.kodi%2faddons%2fplugin.video.sporthdme%2ficon.png&mode=15&name=%5bB%5d%5bCOLOR%20gold%5dAlternative%20LIVE%20EVENTS%5b%2fCOLOR%5d%5b%2fB%5d&url=https%3a%2f%2fliveon.sx%2fprogram 2023-12-25 12:12:01.952 T:140712528230528 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.sporthdme/?description&iconimage=%2fstorage%2f.kodi%2faddons%2fplugin.video.sporthdme%2ficon.png&mode=15&name=%5bB%5d%5bCOLOR%20gold%5dAlternative%20LIVE%20EVENTS%5b%2fCOLOR%5d%5b%2fB%5d&url=https%3a%2f%2fliveon.sx%2fprogram) failed

The domain mentioned at the end does open in a web browser, although it is a blank html index page. Its /program subfolder leads to a 404.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

bugatsinho commented 9 months ago

Alternative list is gone cause website is down

Sent from Proton Mail for iOS

On Tue, Dec 26, 2023 at 00:19, Bugatsinho @.***(mailto:On Tue, Dec 26, 2023 at 00:19, Bugatsinho < wrote:

Last update was only about adding the resolver of the new streams not about the alternative view. So Something changed at the source code. Thanks

Sent from Proton Mail for iOS

On Mon, Dec 25, 2023 at 05:18, pitsi @.***(mailto:On Mon, Dec 25, 2023 at 05:18, pitsi < wrote:

Goodmorning and merry xmas to everyone :)

I am reopeniong this because the the upgrade to 0.1.37 broke the "alternative live sports" list. Up until 0.1.36, the menu entry would work, although it would be completely blank. But after the upgrade it pops this error, on kodi 18, 19 and 20.

2023-12-25 12:12:01.840 T:140711139682048 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

  • NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.TypeError'> Error Contents: not expecting type '<type 'NoneType'>' Traceback (most recent call last): File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 806, in get_new_events(url) File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 237, in get_new_events data = six.ensure_text(client.request(url, headers=headers)) File "/storage/.kodi/addons/script.module.six/lib/six.py", line 939, in ensure_text raise TypeError("not expecting type '%s'" % type(s)) TypeError: not expecting type '<type 'NoneType'>' -->End of Python script error report<-- 2023-12-25 12:12:01.949 T:140712355682048 ERROR: GetDirectory - Error getting plugin://plugin.video.sporthdme/?description&iconimage=%2fstorage%2f.kodi%2faddons%2fplugin.video.sporthdme%2ficon.png&mode=15&name=%5bB%5d%5bCOLOR%20gold%5dAlternative%20LIVE%20EVENTS%5b%2fCOLOR%5d%5b%2fB%5d&url=https%3a%2f%2fliveon.sx%2fprogram 2023-12-25 12:12:01.952 T:140712528230528 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.sporthdme/?description&iconimage=%2fstorage%2f.kodi%2faddons%2fplugin.video.sporthdme%2ficon.png&mode=15&name=%5bB%5d%5bCOLOR%20gold%5dAlternative%20LIVE%20EVENTS%5b%2fCOLOR%5d%5b%2fB%5d&url=https%3a%2f%2fliveon.sx%2fprogram) failed

The domain mentioned at the end does open in a web browser, although it is a blank html index page. Its /program subfolder leads to a 404.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

pitsi commented 9 months ago

Lol that was unexpected :/ Feel free to remove the alternative list if you think it won't return.

pitsi commented 9 months ago

I just checked and the domain is up again, although it goes to a completely blank page this time. As for the /program subpage, it is now online too, but it shows nothing and I don't really know what it should show. The addon does not pop an error when selecting alternative events, just its list is blank.

pitsi commented 8 months ago

Which link? Cause only 1l1l and l1l1 streams work. Need to create resolvers for the new ones Sent from Proton Mail for iOS

May I ask if you have added any other resolvers since then? Nothing seems to be playing since yesterday and I want to open a new bug report with a log, but I don't know which ones should work so as to use only them.

bugatsinho commented 8 months ago

s2stream should work I think

pitsi commented 8 months ago

I took a screenshot of all the available links from a game earlier today and one of them is from s2stream. It played fine on python3, but failed with some encoding error on python2.

The other 2 streams were from smycdn and istorm and they both failed to play, regardless of python version. Assuming that there is no resolver for them, I will now look for streams from 1l1l and l1l1 and open a new issue.

pitsi commented 6 months ago

Thank you for closing the issue, but... Since the alternative links list has been broken for like 6+ months now and an empty menu entry serves nothing, can you remove it from the addon? Or maybe comment it out in its code?

bugatsinho commented 6 months ago

Is there any way to block you?😅

pitsi commented 6 months ago

Yes, there is a block/report option below the info of each profile, here.

2024-04-07-194744_1280x1024_scrot

Ontopic, thank you for removing the alternative links option.