anxdpanic / plugin.video.twitch

Watch your favorite gaming streams on Kodi
https://twitchaddon.page.link/forum
270 stars 80 forks source link

ERROR: Twitch: Connection failed |script.module.python.twitch: #406

Closed cmsimike closed 5 years ago

cmsimike commented 6 years ago

Hi,

Just started getting this error for one streamer (Witwix). Stream works fine in browser and other streams seem fine in Kodi as well (though I didn't do an exhaustive).

00:54:14.575 T:139876414519040 WARNING: script.module.python.twitch: API version |V5| is deprecated, update to |Helix| by |TBD|
00:54:14.904 T:139876414519040  NOTICE: Twitch: Calling |_play| for mode |play| with pos args |[]| and kwargs |{'channel_id': '11558942'}| (ENCODED)
00:54:15.627 T:139876414519040   ERROR: Twitch: Connection failed |script.module.python.twitch: GET Query to https://usher.ttvnw.net/api/channel/hls/witwix.m3u8, params {'allow_audio_only': 'true', 'fast_bread': 'true', 'allow_source': 'true', 'allow_spectre': 'true', 'token': u'{"adblock":false,"authorization":{"forbidden":false,"reason":""},"blackout_enabled":false,"channel":"witwix","channel_id":11558942,"chansub":{"restricted_bitrates":[],"view_until":1924905600},"ci_gb":false,"geoblock_reason":"","device_id":null,"expires":1537431255,"game":"Pok\xe9mon HeartGold/SoulSilver","hide_ads":true,"https_required":true,"mature":false,"partner":false,"platform":null,"player_type":null,"private":{"allowed_to_view":true},"privileged":false,"server_ads":false,"show_ads":false,"subscriber":false,"turbo":true,"user_id":62538150,"user_ip":"***********","version":2}', 'sig': u'xxx'}, data {},  headers {'Client-ID': u'xxx', 'Authorization': 'OAuth ***********'}| (ENCODED)
00:54:15.729 T:139880644626816   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.twitch/?channel_id=11558942&mode=play]

Thanks!

anxdpanic commented 6 years ago

Do you know witwix's schedule? Don't see it posted anywhere. I likely won't be able to check today, hopefully tomorrow. The snippet did prompt me to add an additional log redaction for the next version though.

cmsimike commented 6 years ago

No, he doesn't have a schedule AFAIK. I watch him from time to time (mostly due to the lack of great schedule) but really I wanted to report the issue in case there were other streams with a similar issue.

xenius commented 5 years ago
00:25:24.372 T:8548 WARNING: script.module.python.twitch: API version |V5| is deprecated, update to |Helix| by |TBD|
00:25:24.526 T:8548  NOTICE: Twitch: Calling |play| for mode |play| with pos args |[]| and kwargs |{'channel_id': '226511987'}|
00:25:25.214 T:8548   ERROR: Twitch: Connection failed |script.module.python.twitch: GET Query to https://usher.ttvnw.net/api/channel/hls/markosmodernlife.m3u8, params {'allow_audio_only': 'true', 'fast_bread': 'true', 'allow_source': 'true', 'allow_spectre': 'true', 'token': u'{"adblock":false,"authorization":{"forbidden":false,"reason":""},"blackout_enabled":false,"channel":"markosmodernlife","channel_id":226511987,"chansub":{"restricted_bitrates":[],"view_until":1924905600},"ci_gb":false,"geoblock_reason":"","device_id":null,"expires":1537829127,"game":"Pok\xe9mon go","hide_ads":false,"https_required":true,"mature":false,"partner":false,"platform":null,"player_type":null,"private":{"allowed_to_view":true},"privileged":false,"server_ads":false,"show_ads":true,"subscriber":false,"turbo":false,"user_id":18375831,"user_ip":"***********","version":2}', 'sig': u'6508b85175f07a095ce67e5f833a282dd24673b2'}, data {},  headers {'Client-ID': u'67ebpfhyoicab5kr0y7pzocsfohs7ty', 'Authorization': 'OAuth ***********'}|
00:25:25.223 T:3024   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.twitch/?channel_id=226511987&mode=play]

Same here.

cmsimike commented 5 years ago

FWIW Witwix was online this weekend and the stream seemed to work for me, without me doing anything

jonHESSO commented 5 years ago

I get the same error with every single stream where the played game is Pokémon [something]. Is the parameter "game":"Pok\xe9mon HeartGold/SoulSilver" the culprit here ?

anxdpanic commented 5 years ago

This should be resolved in the latest betas, was an encoding issue with the playback token. This is hopefully the last of the hiccups in the python 3 compatibility changes. Let me know if these resolve the issue for you, https://github.com/MrSprigster/Twitch-on-Kodi/releases/tag/2.3.4-beta https://github.com/MrSprigster/script.module.python.twitch/releases/tag/2.0.4-beta

cmsimike commented 5 years ago

I will wait until the problem happens again and quickly upgrade and let you know. As always, thank you for your continued efforts on this project.

anxdpanic commented 5 years ago

Both are now on the official repository, going to close as this should be resolved now. Please re-open if it recurs.