Kodi Community Forum

Full Version: [RELEASE] Twitch.tv
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
@CrappyGamingXD It works with rpb, with some configuration and ssh/kodi-send/json-rpc it could possibly work for what you want.

@Deventhedudee Have you copied the oauth token you recieved into the addon settings? Also please provide a debug_log (wiki).
Receiving the below errors now when trying to use the twitch app, nothing on my system has changed that I'm aware of.  Any ideas what the issue is?  Did twitch update something in their API maybe?

Code:
21:48:17.792 T:140097661749632 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.twitch/)
21:48:17.792 T:140097661749632 DEBUG: ParentPath = [plugin://plugin.video.twitch/]
21:48:17.800 T:140097161107200 DEBUG: CAddonDatabase::SetLastUsed[plugin.video.twitch] took 7 ms
21:48:17.800 T:140094673250048 DEBUG: StartScript - calling plugin Twitch('plugin://plugin.video.twitch/','2','')
21:48:17.801 T:140094516852480 DEBUG: Thread LanguageInvoker start, auto delete: false
21:48:17.801 T:140094516852480 INFO: initializing python engine.
21:48:17.801 T:140094516852480 DEBUG: CPythonInvoker(19, /home/saber07/.kodi/addons/plugin.video.twitch/resources/lib/routes.py): start processing
21:48:17.864 T:140094516852480 DEBUG: -->Python Interpreter Initialized<--
21:48:17.864 T:140094516852480 DEBUG: CPythonInvoker(19, /home/saber07/.kodi/addons/plugin.video.twitch/resources/lib/routes.py): the source file to load is "/home/saber07/.kodi/addons/plugin.video.twitch/resources/lib/routes.py"
21:48:17.864 T:140094516852480 DEBUG: CPythonInvoker(19, /home/saber07/.kodi/addons/plugin.video.twitch/resources/lib/routes.py): setting the Python path to /home/saber07/.kodi/addons/plugin.video.twitch/resources/lib:/home/saber07/.kodi/addons/script.module.certifi/lib:/home/saber07/.kodi/addons/script.module.chardet/lib:/home/saber07/.kodi/addons/script.module.idna/lib:/home/saber07/.kodi/addons/script.module.python.twitch/resources/lib:/home/saber07/.kodi/addons/script.module.requests/lib:/home/saber07/.kodi/addons/script.module.six/lib:/home/saber07/.kodi/addons/script.module.urllib3/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PILcompat
21:48:17.864 T:140094516852480 DEBUG: CPythonInvoker(19, /home/saber07/.kodi/addons/plugin.video.twitch/resources/lib/routes.py): entering source directory /home/saber07/.kodi/addons/plugin.video.twitch/resources/lib
21:48:17.864 T:140094516852480 DEBUG: CPythonInvoker(19, /home/saber07/.kodi/addons/plugin.video.twitch/resources/lib/routes.py): instantiating addon using automatically obtained id of "plugin.video.twitch" dependent on version 2.20.0 of the xbmc.python api
21:48:17.939 T:140094516852480 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: cannot import name scopes
Traceback (most recent call last):
File "/home/saber07/.kodi/addons/plugin.video.twitch/resources/lib/routes.py", line 22, in <module>
from addon import utils, api, menu_items, cache
File "/home/saber07/.kodi/addons/plugin.video.twitch/resources/lib/addon/utils.py", line 27, in <module>
from constants import CLIENT_ID, REDIRECT_URI, LIVE_PREVIEW_TEMPLATE, Images, ADDON_DATA_DIR, REQUEST_LIMIT, COLORS
File "/home/saber07/.kodi/addons/plugin.video.twitch/resources/lib/addon/constants.py", line 21, in <module>
from twitch import scopes
ImportError: cannot import name scopes
-->End of Python script error report<--
21:48:17.965 T:140094516852480 INFO: Python script stopped
21:48:17.965 T:140094516852480 DEBUG: Thread LanguageInvoker 140094516852480 terminating
21:48:17.981 T:140097661749632 ERROR: GetDirectory - Error getting plugin://plugin.video.twitch/
21:48:17.981 T:140097661749632 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.twitch/) failed
21:48:17.981 T:140097661749632 DEBUG: CGUIMediaWindow::GetDirectory ()
21:48:17.981 T:140097661749632 DEBUG: ParentPath = [plugin://plugin.video.twitch/]
21:48:17.985 T:140094516852480 DEBUG: Thread BackgroundLoader start, auto delete: false
21:48:17.988 T:140097661749632 DEBUG: ------ Window Init (DialogNotification.xml) ------
21:48:17.990 T:140094516852480 DEBUG: Thread BackgroundLoader 140094516852480 terminating
21:48:21.687 T:140097001350912 DEBUG: CWebServer[8080]: request received for /jsonrpc?Input.Back
21:48:21.699 T:140097661749632 DEBUG: CGUIWindowManager:TonguereviousWindow: Deactivate
21:48:22.032 T:140097661749632 DEBUG: ------ Window Deinit (MyVideoNav.xml) ------
21:48:22.032 T:140097661749632 DEBUG: CGUIWindowManager:TonguereviousWindow: Activate new
21:48:22.033 T:140097661749632 DEBUG: ------ Window Init (Home.xml) ------
21:48:22.033 T:140097661749632 DEBUG: CDirectoryProvider[addons://]: refreshing..
21:48:22.033 T:140097661749632 DEBUG: CDirectoryProvider[addons://sources/video/]: refreshing..
21:48:22.033 T:140097661749632 DEBUG: CDirectoryProvider[addons://sources/audio/]: refreshing..
21:48:22.033 T:140097661749632 DEBUG: CDirectoryProvider[addons://sources/game/]: refreshing..
21:48:22.033 T:140097661749632 DEBUG: CDirectoryProvider[addons://sources/executable/]: refreshing..
21:48:22.033 T:140097661749632 DEBUG: CDirectoryProvider[addons://sources/image/]: refreshing..
21:48:22.039 T:140096151201536 ERROR: ADDON: extension '' is not currently supported for service addon
21:48:22.058 T:140096151201536 DEBUG: CAddonMgr::GetAvailableUpdates took 24 ms
21:48:22.070 T:140096151201536 ERROR: ADDON: extension '' is not currently supported for service addon
Same as @saber07, I too began having the Twitch plugin fail tonight (Jan 17), for what it's worth.  Has been working with no problem for a long time until this evening.
"python-twitch for Kodi" script got updated which is used by the Twitch plugin. That seems to have broken things. I rolled back python-twitch to 1.1.0 and that got the plugin working again for now.
Sorry about that was my fault I forgot to mention the module also needed the plugin during the pull requests to official.
The plugin has been accepted now.

Can also find the zips: https://github.com/MrSprigster/Twitch-on.../tag/2.1.0
Hello, 
i updated twitch and script but when i try to play something i have this error:

Code:

InsecureRequestWarning)
14:18:59 1726.988525 T:1272149056   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: 22346597
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.twitch/resources/lib/routes.py", line 1314, in <module>
                                                sys.exit(run())
                                              File "/storage/.kodi/addons/plugin.video.twitch/resources/lib/routes.py", line 1310, in run
                                                dispatcher.dispatch(mode, queries)
                                              File "/storage/.kodi/addons/plugin.video.twitch/resources/lib/addon/common/url_dispatcher.py", line 102, in dispatch
                                                self.func_registry[mode](*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.twitch/resources/lib/addon/error_handling.py", line 32, in wrapper
                                                result = func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.twitch/resources/lib/routes.py", line 940, in play
                                                quality = quality[channel_id]['quality']
                                            KeyError: 22346597
                                            -->End of Python script error report<--
14:19:00 1728.046753 T:1967149056   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.twitch/?video_id=v209973095&mode=play]

Please use full debug_log (wiki) and not snippets

I would try Settings - Default Qualities - Remove all video qualities
Im getting twitch error check the logs for more info aswell after trying to manually update as stated. God dammit. Any solution?
@Hooward Please read 3-4 posts back...
Yes i installed the script module first and then the plugin, but i get the same error after that aswell. Something im missing here? Sorry.
If you're on twitch 2.1.0 and module 2.0.0 then it's a different error. Please post a debug_log (wiki)
(2018-01-18, 15:32)anxdpanic Wrote: [ -> ]Please use full debug_log (wiki) and not snippets

I would try Settings - Default Qualities - Remove all video qualities
 I put the full log in two pastebins, i think the second is the important:
https://pastebin.com/WZEXVyVh
https://pastebin.com/9FrNgVZr

In addition, i try to remove all video qualities, but it stills not works

Thanks
Im on openelec and never done a debug before so will have to Google that stuff. But i worked before the update came so its strange Sad
(2018-01-18, 17:14)Hooward Wrote: [ -> ]Im on openelec and never done a debug before so will have to Google that stuff. But i worked before the update came so its strange Sad
Me too, i am on openelec and yesterday it works
About this, which method you use to update the addon? Have you got an official repository in openelec?
@ninjachu Thanks, I can see what is causing the issue for this as well. Will fix on github shortly. Already fixed the video quality issue.

@Hooward The debug_log (wiki) link will take you to the wiki for more information.
Is your issue happening at playback like ninjachu's?