Closed pitsi closed 5 months ago
Today's upgrade to 0.1.39 fixes the resolver for smycdn. The problem on s2watch on python2 remains. If I find any games with different providers I will report back.
mate i'm not going to support old versions of KODI. Also s2watch works on kodi18
Are you sure? Because I tested it just now and it does pop the same error. Kodi 18 is still python2 mind you.
2024-02-10 18:31:19.690 T:140479060748032 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'\ufeff' in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 834, in <module>
get_stream(url)
File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 320, in get_stream
return resolve(host, name)
File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 569, in resolve
xbmc.log('@#@DATA: %s' % str(r))
UnicodeEncodeError: 'ascii' codec can't encode character u'\ufeff' in position 0: ordinal not in range(128)
-->End of Python script error report<--
kodi 18.9
I believe you, but they still fail to play on my end. Posting a screenshot with kodi showing only the error notification is a waste of time.
While I am searching for a way to really prove I am running kodi 18.9, which of the 11 links provided for that game is the one on your screenshot? I tried all four s2watch links from there (2, 4, 6 and 8) and they all popped the same error.
---edit
Simplest way I can find to prove I am on kodi 18.9.
---re-edit Even simpler
# head -2 .kodi/temp/kodi.log
2024-02-10 19:54:25.274 T:140352428210304 NOTICE: -----------------------------------------------------------------------
2024-02-10 19:54:25.274 T:140352428210304 NOTICE: Starting Kodi (18.9 (18.9.0)
# python --version
Python 2.7.16
So first of all. if you have the last version 0.1.39 then go to line 572(or line 569 as it shown in your screenshot) of default.py xbmc.log('@#@DATA: %s' % str(r)) replace it with:
Proof that I am on 0.1.39
# cat .kodi/addons/plugin.video.sporthdme/addon.xml | grep version
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.sporthdme" name="SportHD" version="0.1.39" provider-name="Bugatsinho">
And what lines 572 and 569 say
# sed -n 572p .kodi/addons/plugin.video.sporthdme/default.py
# xbmc.log('@#@STREAMMMMM111111: %s' % stream)
# sed -n 569p .kodi/addons/plugin.video.sporthdme/default.py
xbmc.log('@#@DATA: %s' % str(r))
I commented out line 569 and now I am waiting for a stream to test it and I will report back.
---edit S2watch works now that I patched the file. Do not close the issue please, I will add logs for other resolvers once I find them.
Yesterday's update to 0.1.40 seems to solve the issue with s2watch. Thank you. Excluding coolrea, where resolving seems to fail due to js, I will add errors from other resolvers once I find them.
All resolvers seem to work right now, so I am closing the issue. Thank you for your work :)
Coolrea is broken again
2024-02-25 20:09:13.833 T:140467928798976 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 792, in <module>
get_stream(url)
File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 313, in get_stream
return resolve(host, name)
File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 654, in resolve
unpack = re.findall(r'''script>(eval.+?\{\}\))\)''', data, re.DOTALL)[0]
IndexError: list index out of range
-->End of Python script error report<--
Thanks mate hope it will be a fix for it😎
Hello again.
S2watch gets to a 403
2024-03-23 20:09:54.011 T:140366689142912 NOTICE: VideoPlayer::OpenFile: https://websuit.onlinehdhls.ru/est1/cdn/mono19/playlist.m3u8|Referer=https%3A//viwlivehdplay.ru/mono.php%3Fid%3D19
2024-03-23 20:09:54.296 T:140366689142912 ERROR: CCurlFile::Stat - Failed: HTTP response code said error(22) for https://websuit.onlinehdhls.ru/est1/cdn/mono19/playlist.m3u8|Referer=https%3A//viwlivehdplay.ru/mono.php%3Fid%3D19
2024-03-23 20:09:54.306 T:140365218699008 NOTICE: Creating InputStream
2024-03-23 20:09:54.585 T:140365218699008 ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
2024-03-23 20:09:54.585 T:140365218699008 ERROR: CCurlFile::Open failed with code 403 for https://websuit.onlinehdhls.ru/est1/cdn/mono19/playlist.m3u8:
All I can say is that the referer part is not to blame, because asking kodi to play this, without sporthd doing anything, results in the same 403 error.
https://websuit.onlinehdhls.ru/est1/cdn/mono19/playlist.m3u8|Referer=https://viwlivehdplay.ru/
Can you please check the resolvers for coolrea and l1l1? They do not seem to work lately. I would post a log from them, but I am a bit injured right now, so all I can do is see the errors from kodi's log viewer.
After the upgrade to 1.0.54 (I probably missed the .53 update), all (= smycdn, s2watch, coolrea and l1l1) resolvers fail on python2. S2watch pops no error but it does not start at all, while the other three fail with an error.
On the other hand, coolrea is the only one that fails with an error on python3.
p.s. Last week, I tried libreelec 12 which comes with kodi 21 and it still has that wireless networking issue libreelec 11 had, because iwd and connman can not work together properly. So please do not ask why I have not moved to a newer version.
Smycdn,fails with error.
2024-05-12 18:24:33.427 T:139994115188480 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'\ufeff' in position 0: ordinal not in range(128)
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 818, in <module>
router(sys.argv[2][1:])
File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 808, in router
get_stream(params['name'], params['url'])
File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 175, in get_stream
resolve(name, host)
File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 417, in resolve
xbmc.log('HTMLSTART: {}'.format(html))
UnicodeEncodeError: 'ascii' codec can't encode character u'\ufeff' in position 0: ordinal not in range(128)
-->End of Python script error report<--
2024-05-12 18:24:33.571 T:139994060130048 ERROR: GetDirectory - Error getting plugin://plugin.video.sporthdme/?description=%2fstorage%2f.kodi%2faddons%2fplugin.video.sporthdme%2ffanart.jpg&iconimage=https%3a%2f%2fapi.sofascore1.com%2fapi%2fv1%2fteam%2f36246%2fimage&mode=get_streams&name=%5bCOLOR%20cyan%5d12-May%2c%2018%3a00%5b%2fCOLOR%5d%20%5bCOLOR%20lime%5dNK%20Lokomotiva%20Zagreb%20vs%20NK%20Slaven%20Belupo%5b%2fCOLOR%5d%20-%20%5bI%5dHNL-Croatia%5b%2fI%5d&url=W3t1J2xhbmcnOiB1J0hSJywgdSdsaW5rJzogdSdodHRwczovL3NteWNkbi5ydS9mbGFzaDQ3JywgdSduYW1lJzogdSdNYXggU3BvcnQgMSd9LCB7dSdsYW5nJzogdSdIUicsIHUnbGluayc6IHUnaHR0cHM6Ly9zMndhdGNoLmxpbmsvZmxhc2g0NycsIHUnbmFtZSc6IHUnTWF4IFNwb3J0IDEnfSwge3UnbGFuZyc6IHUnSFInLCB1J2xpbmsnOiB1J2h0dHBzOi8vY29vbHJlYS5saW5rL2ZsYXNoNDcnLCB1J25hbWUnOiB1J01heCBTcG9ydCAxJ30sIHt1J2xhbmcnOiB1J0hSJywgdSdsaW5rJzogdSdodHRwczovLzFsMWwudG8vL2ZsYXNoNDcnLCB1J25hbWUnOiB1J01heCBTcG9ydCAxJ31d
2024-05-12 18:24:33.585 T:139995688597632 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.sporthdme/?description=%2fstorage%2f.kodi%2faddons%2fplugin.video.sporthdme%2ffanart.jpg&iconimage=https%3a%2f%2fapi.sofascore1.com%2fapi%2fv1%2fteam%2f36246%2fimage&mode=get_streams&name=%5bCOLOR%20cyan%5d12-May%2c%2018%3a00%5b%2fCOLOR%5d%20%5bCOLOR%20lime%5dNK%20Lokomotiva%20Zagreb%20vs%20NK%20Slaven%20Belupo%5b%2fCOLOR%5d%20-%20%5bI%5dHNL-Croatia%5b%2fI%5d&url=W3t1J2xhbmcnOiB1J0hSJywgdSdsaW5rJzogdSdodHRwczovL3NteWNkbi5ydS9mbGFzaDQ3JywgdSduYW1lJzogdSdNYXggU3BvcnQgMSd9LCB7dSdsYW5nJzogdSdIUicsIHUnbGluayc6IHUnaHR0cHM6Ly9zMndhdGNoLmxpbmsvZmxhc2g0NycsIHUnbmFtZSc6IHUnTWF4IFNwb3J0IDEnfSwge3UnbGFuZyc6IHUnSFInLCB1J2xpbmsnOiB1J2h0dHBzOi8vY29vbHJlYS5saW5rL2ZsYXNoNDcnLCB1J25hbWUnOiB1J01heCBTcG9ydCAxJ30sIHt1J2xhbmcnOiB1J0hSJywgdSdsaW5rJzogdSdodHRwczovLzFsMWwudG8vL2ZsYXNoNDcnLCB1J25hbWUnOiB1J01heCBTcG9ydCAxJ31d) failed
S2watch, fails silently.
2024-05-12 18:25:11.048 T:139995688597632 NOTICE: VideoPlayer::OpenFile: https://websuit.onlinehdhls.ru/lb/mono47/playlist.m3u8
2024-05-12 18:25:11.061 T:139994115188480 NOTICE: Creating InputStream
2024-05-12 18:25:11.062 T:139994115188480 NOTICE: Creating Demuxer
2024-05-12 18:25:11.157 T:139994093700864 ERROR: GetDirectory - Error getting plugin://plugin.video.sporthdme/?description=%2fstorage%2f.kodi%2faddons%2fplugin.video.sporthdme%2ffanart.jpg&iconimage=https%3a%2f%2fapi.sofascore1.com%2fapi%2fv1%2fteam%2f36246%2fimage&mode=get_streams&name=%5bCOLOR%20cyan%5d12-May%2c%2018%3a00%5b%2fCOLOR%5d%20%5bCOLOR%20lime%5dNK%20Lokomotiva%20Zagreb%20vs%20NK%20Slaven%20Belupo%5b%2fCOLOR%5d%20-%20%5bI%5dHNL-Croatia%5b%2fI%5d&url=W3t1J2xhbmcnOiB1J0hSJywgdSdsaW5rJzogdSdodHRwczovL3NteWNkbi5ydS9mbGFzaDQ3JywgdSduYW1lJzogdSdNYXggU3BvcnQgMSd9LCB7dSdsYW5nJzogdSdIUicsIHUnbGluayc6IHUnaHR0cHM6Ly9zMndhdGNoLmxpbmsvZmxhc2g0NycsIHUnbmFtZSc6IHUnTWF4IFNwb3J0IDEnfSwge3UnbGFuZyc6IHUnSFInLCB1J2xpbmsnOiB1J2h0dHBzOi8vY29vbHJlYS5saW5rL2ZsYXNoNDcnLCB1J25hbWUnOiB1J01heCBTcG9ydCAxJ30sIHt1J2xhbmcnOiB1J0hSJywgdSdsaW5rJzogdSdodHRwczovLzFsMWwudG8vL2ZsYXNoNDcnLCB1J25hbWUnOiB1J01heCBTcG9ydCAxJ31d
2024-05-12 18:25:11.174 T:139995688597632 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.sporthdme/?description=%2fstorage%2f.kodi%2faddons%2fplugin.video.sporthdme%2ffanart.jpg&iconimage=https%3a%2f%2fapi.sofascore1.com%2fapi%2fv1%2fteam%2f36246%2fimage&mode=get_streams&name=%5bCOLOR%20cyan%5d12-May%2c%2018%3a00%5b%2fCOLOR%5d%20%5bCOLOR%20lime%5dNK%20Lokomotiva%20Zagreb%20vs%20NK%20Slaven%20Belupo%5b%2fCOLOR%5d%20-%20%5bI%5dHNL-Croatia%5b%2fI%5d&url=W3t1J2xhbmcnOiB1J0hSJywgdSdsaW5rJzogdSdodHRwczovL3NteWNkbi5ydS9mbGFzaDQ3JywgdSduYW1lJzogdSdNYXggU3BvcnQgMSd9LCB7dSdsYW5nJzogdSdIUicsIHUnbGluayc6IHUnaHR0cHM6Ly9zMndhdGNoLmxpbmsvZmxhc2g0NycsIHUnbmFtZSc6IHUnTWF4IFNwb3J0IDEnfSwge3UnbGFuZyc6IHUnSFInLCB1J2xpbmsnOiB1J2h0dHBzOi8vY29vbHJlYS5saW5rL2ZsYXNoNDcnLCB1J25hbWUnOiB1J01heCBTcG9ydCAxJ30sIHt1J2xhbmcnOiB1J0hSJywgdSdsaW5rJzogdSdodHRwczovLzFsMWwudG8vL2ZsYXNoNDcnLCB1J25hbWUnOiB1J01heCBTcG9ydCAxJ31d) failed
2024-05-12 18:25:15.935 T:139994299549440 NOTICE: [plugin.video.elementum] WARN api ▶ func9 OnPlay. No active player found
Coolrea, fails with error.
2024-05-12 18:26:13.112 T:139994093700864 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 818, in <module>
router(sys.argv[2][1:])
File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 808, in router
get_stream(params['name'], params['url'])
File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 175, in get_stream
resolve(name, host)
File "/storage/.kodi/addons/plugin.video.sporthdme/default.py", line 539, in resolve
unpack = re.findall(r'''script>(eval.+?\{\}\))\)''', data, re.DOTALL)[0]
IndexError: list index out of range
-->End of Python script error report<--
2024-05-12 18:26:13.245 T:139994115188480 ERROR: GetDirectory - Error getting plugin://plugin.video.sporthdme/?description=%2fstorage%2f.kodi%2faddons%2fplugin.video.sporthdme%2ffanart.jpg&iconimage=https%3a%2f%2fapi.sofascore1.com%2fapi%2fv1%2fteam%2f36246%2fimage&mode=get_streams&name=%5bCOLOR%20cyan%5d12-May%2c%2018%3a00%5b%2fCOLOR%5d%20%5bCOLOR%20lime%5dNK%20Lokomotiva%20Zagreb%20vs%20NK%20Slaven%20Belupo%5b%2fCOLOR%5d%20-%20%5bI%5dHNL-Croatia%5b%2fI%5d&url=W3t1J2xhbmcnOiB1J0hSJywgdSdsaW5rJzogdSdodHRwczovL3NteWNkbi5ydS9mbGFzaDQ3JywgdSduYW1lJzogdSdNYXggU3BvcnQgMSd9LCB7dSdsYW5nJzogdSdIUicsIHUnbGluayc6IHUnaHR0cHM6Ly9zMndhdGNoLmxpbmsvZmxhc2g0NycsIHUnbmFtZSc6IHUnTWF4IFNwb3J0IDEnfSwge3UnbGFuZyc6IHUnSFInLCB1J2xpbmsnOiB1J2h0dHBzOi8vY29vbHJlYS5saW5rL2ZsYXNoNDcnLCB1J25hbWUnOiB1J01heCBTcG9ydCAxJ30sIHt1J2xhbmcnOiB1J0hSJywgdSdsaW5rJzogdSdodHRwczovLzFsMWwudG8vL2ZsYXNoNDcnLCB1J25hbWUnOiB1J01heCBTcG9ydCAxJ31d
2024-05-12 18:26:13.264 T:139995688597632 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.sporthdme/?description=%2fstorage%2f.kodi%2faddons%2fplugin.video.sporthdme%2ffanart.jpg&iconimage=https%3a%2f%2fapi.sofascore1.com%2fapi%2fv1%2fteam%2f36246%2fimage&mode=get_streams&name=%5bCOLOR%20cyan%5d12-May%2c%2018%3a00%5b%2fCOLOR%5d%20%5bCOLOR%20lime%5dNK%20Lokomotiva%20Zagreb%20vs%20NK%20Slaven%20Belupo%5b%2fCOLOR%5d%20-%20%5bI%5dHNL-Croatia%5b%2fI%5d&url=W3t1J2xhbmcnOiB1J0hSJywgdSdsaW5rJzogdSdodHRwczovL3NteWNkbi5ydS9mbGFzaDQ3JywgdSduYW1lJzogdSdNYXggU3BvcnQgMSd9LCB7dSdsYW5nJzogdSdIUicsIHUnbGluayc6IHUnaHR0cHM6Ly9zMndhdGNoLmxpbmsvZmxhc2g0NycsIHUnbmFtZSc6IHUnTWF4IFNwb3J0IDEnfSwge3UnbGFuZyc6IHUnSFInLCB1J2xpbmsnOiB1J2h0dHBzOi8vY29vbHJlYS5saW5rL2ZsYXNoNDcnLCB1J25hbWUnOiB1J01heCBTcG9ydCAxJ30sIHt1J2xhbmcnOiB1J0hSJywgdSdsaW5rJzogdSdodHRwczovLzFsMWwudG8vL2ZsYXNoNDcnLCB1J25hbWUnOiB1J01heCBTcG9ydCAxJ31d) failed
1l1l, fails silently
2024-05-12 18:28:24.840 T:139995688597632 NOTICE: VideoPlayer::OpenFile: https://bkqye8ar5mwd3utvnj7x4c.cdnstrength.net:8443/hls/0c46cr4hjls.m3u8?s=U2CjtZfTP48RxdujqmfNXA&e=1715549304
2024-05-12 18:28:24.847 T:139995390555904 NOTICE: Creating InputStream
2024-05-12 18:28:24.848 T:139995390555904 NOTICE: Creating Demuxer
2024-05-12 18:28:24.914 T:139994093700864 ERROR: GetDirectory - Error getting plugin://plugin.video.sporthdme/?description=%2fstorage%2f.kodi%2faddons%2fplugin.video.sporthdme%2ffanart.jpg&iconimage=https%3a%2f%2fapi.sofascore1.com%2fapi%2fv1%2fteam%2f36246%2fimage&mode=get_streams&name=%5bCOLOR%20cyan%5d12-May%2c%2018%3a00%5b%2fCOLOR%5d%20%5bCOLOR%20lime%5dNK%20Lokomotiva%20Zagreb%20vs%20NK%20Slaven%20Belupo%5b%2fCOLOR%5d%20-%20%5bI%5dHNL-Croatia%5b%2fI%5d&url=W3t1J2xhbmcnOiB1J0hSJywgdSdsaW5rJzogdSdodHRwczovL3NteWNkbi5ydS9mbGFzaDQ3JywgdSduYW1lJzogdSdNYXggU3BvcnQgMSd9LCB7dSdsYW5nJzogdSdIUicsIHUnbGluayc6IHUnaHR0cHM6Ly9zMndhdGNoLmxpbmsvZmxhc2g0NycsIHUnbmFtZSc6IHUnTWF4IFNwb3J0IDEnfSwge3UnbGFuZyc6IHUnSFInLCB1J2xpbmsnOiB1J2h0dHBzOi8vY29vbHJlYS5saW5rL2ZsYXNoNDcnLCB1J25hbWUnOiB1J01heCBTcG9ydCAxJ30sIHt1J2xhbmcnOiB1J0hSJywgdSdsaW5rJzogdSdodHRwczovLzFsMWwudG8vL2ZsYXNoNDcnLCB1J25hbWUnOiB1J01heCBTcG9ydCAxJ31d
2024-05-12 18:28:24.944 T:139995688597632 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.sporthdme/?description=%2fstorage%2f.kodi%2faddons%2fplugin.video.sporthdme%2ffanart.jpg&iconimage=https%3a%2f%2fapi.sofascore1.com%2fapi%2fv1%2fteam%2f36246%2fimage&mode=get_streams&name=%5bCOLOR%20cyan%5d12-May%2c%2018%3a00%5b%2fCOLOR%5d%20%5bCOLOR%20lime%5dNK%20Lokomotiva%20Zagreb%20vs%20NK%20Slaven%20Belupo%5b%2fCOLOR%5d%20-%20%5bI%5dHNL-Croatia%5b%2fI%5d&url=W3t1J2xhbmcnOiB1J0hSJywgdSdsaW5rJzogdSdodHRwczovL3NteWNkbi5ydS9mbGFzaDQ3JywgdSduYW1lJzogdSdNYXggU3BvcnQgMSd9LCB7dSdsYW5nJzogdSdIUicsIHUnbGluayc6IHUnaHR0cHM6Ly9zMndhdGNoLmxpbmsvZmxhc2g0NycsIHUnbmFtZSc6IHUnTWF4IFNwb3J0IDEnfSwge3UnbGFuZyc6IHUnSFInLCB1J2xpbmsnOiB1J2h0dHBzOi8vY29vbHJlYS5saW5rL2ZsYXNoNDcnLCB1J25hbWUnOiB1J01heCBTcG9ydCAxJ30sIHt1J2xhbmcnOiB1J0hSJywgdSdsaW5rJzogdSdodHRwczovLzFsMWwudG8vL2ZsYXNoNDcnLCB1J25hbWUnOiB1J01heCBTcG9ydCAxJ31d) failed
All of them are from kodi 18, but the coolrea has the same error on on kodi 19+ as well.
Everything is fixed on 1.0.55. Thank you very much!
As it seems, sporthd's links have switched from 1l1l and l1l1 and the new links are not resolved by the addon. Here is what the log outputs for smycdn
and for istorm
There is also this small encoding issue with python2, which makes s2watch fail to play on kodi 18. It works fine on kodi 19+ and python3 though.