Kodi Community Forum
[RELEASE] Twitch.tv - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] Twitch.tv (/showthread.php?tid=134538)



RE: [RELEASE] Twitch.tv - ninjachu - 2017-09-15

anxdpanic, i see in your last commit that twitch script api is going to be deprecated, do we need to update our addon?


RE: [RELEASE] Twitch.tv - anxdpanic - 2017-09-15

Twitch's v5 api is being deprecated, not the module.
I've only added notations to the script.module.python.twitch module to notify any dev's using or thinking of using that module of the deprecation and that breaking changes may be introduced during the addition of Twitch's new helix api. As this happens the Twitch add-on will be updated accordingly as well, and then moved to the new api once ready. (the new helix api is incomplete currently)

Currently no updates are required, script.module.python.twitch 1.1.0 can be installed or left at 1.0.2 for now. 1.1.0(< 2.0.0) will be submitted to official repo soon, before starting on 2.0.0 and adding the new api.


RE: [RELEASE] Twitch.tv - qwertyy - 2017-09-17

Is it possible to integrate hls inputstream playback to enable timeshift like you did for YouTube addon?


RE: [RELEASE] Twitch.tv - anxdpanic - 2017-09-17

Will be looking into using inputstream.adaptive. No eta, but will be after script.module.python.twitch 2.0.0 as there are changes that will be required there first.


RE: [RELEASE] Twitch.tv - qwertyy - 2017-09-22

Do you know when twitch API will be updated?


RE: [RELEASE] Twitch.tv - anxdpanic - 2017-10-12

@qwertyy: inputstream.adaptive hls is in the alpha currently

The lastest alphas are posted: 
https://github.com/MrSprigster/Twitch-on-Kodi/releases/tag/2.1.0-alpha

[add] Revoke token
[add] Update token route

[chg] string paths
[fix] required changes for script.module.python.twitch v2.0.0 refactor
[add] inputstream.adaptive support for inputstream.adaptive versions >= 2.0.10
[add] Hebrew strings [Eng2Heb]



RE: [RELEASE] Twitch.tv - qwertyy - 2017-11-03

Is it possible to integrate the time shift function in future Alpha like in YouTube livestreams?


RE: [RELEASE] Twitch.tv - blackcap - 2017-11-08

Unable to open Twitch.tv on Kodi. Kodi says the add-on (2.0.2) is installed, I see it listed in the "Add-ons" but receive an error when trying to open it.

Kodi v17.5 on a raspberry pie. For what it's worth, the Youtube add-on works great. Can watch videos and live streams no problem in it. Please let me know if any additional information is required to troubleshoot.

From kodi.log:


Code:
16:00:37.733  79.695984 T:1690301360   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: No module named moves.urllib_parse
                                            Traceback (most recent call last):
                                              File "/home/xbian/.kodi/addons/plugin.video.twitch/resources/lib/service.py", line 25, in <module>
                                                from addon.constants import Keys
                                              File "/home/xbian/.kodi/addons/plugin.video.twitch/resources/lib/addon/constants.py", line 21, in <module>
                                                from twitch.oauth.v5 import scopes
                                              File "/home/xbian/.kodi/addons/script.module.python.twitch/resources/lib/twitch/oauth.py", line 5, in <module>
                                                from six.moves.urllib_parse import urlsplit, urlencode
                                            ImportError: No module named moves.urllib_parse
                                            -->End of Python script error report<--
16:00:45.966  87.929733 T:1715467184   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 string_types
                                            Traceback (most recent call last):
                                              File "/home/xbian/.kodi/addons/script.skin.helper.service/service.py", line 10, in <module>
                                                from resources.lib.main_service import MainService
                                              File "/home/xbian/.kodi/addons/script.skin.helper.service/resources/lib/main_service.py", line 13, in <module>
                                                from listitem_monitor import ListItemMonitor
                                              File "/home/xbian/.kodi/addons/script.skin.helper.service/resources/lib/listitem_monitor.py", line 13, in <module>
                                                from metadatautils import extend_dict, process_method_on_list
                                              File "/home/xbian/.kodi/addons/script.module.metadatautils/lib/metadatautils.py", line 9, in <module>
                                                from helpers.animatedart import AnimatedArt
                                              File "/home/xbian/.kodi/addons/script.module.metadatautils/lib/helpers/animatedart.py", line 6, in <module>
                                                from utils import get_json, DialogSelect, log_msg, ADDON_ID
                                              File "/home/xbian/.kodi/addons/script.module.metadatautils/lib/helpers/utils.py", line 12, in <module>
                                                import arrow
                                              File "/home/xbian/.kodi/addons/script.module.arrow/lib/arrow/__init__.py", line 3, in <module>
                                                from .arrow import Arrow
                                              File "/home/xbian/.kodi/addons/script.module.arrow/lib/arrow/arrow.py", line 11, in <module>
                                                from dateutil import tz as dateutil_tz
                                              File "/home/xbian/.kodi/addons/script.module.dateutil/lib/dateutil/tz/__init__.py", line 1, in <module>
                                                from .tz import *
                                              File "/home/xbian/.kodi/addons/script.module.dateutil/lib/dateutil/tz/tz.py", line 16, in <module>
                                                from six import string_types, PY3
                                            ImportError: cannot import name string_types
                                            -->End of Python script error report<--
16:00:52.705  94.668694 T:1749021616   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: No module named moves.urllib_parse
                                            Traceback (most recent call last):
                                              File "/home/xbian/.kodi/addons/plugin.video.twitch/resources/lib/routes.py", line 22, in <module>
                                                from addon import utils, api, menu_items, cache
                                              File "/home/xbian/.kodi/addons/plugin.video.twitch/resources/lib/addon/utils.py", line 28, in <module>
                                                from constants import CLIENT_ID, REDIRECT_URI, LIVE_PREVIEW_TEMPLATE, Images, ADDON_DATA_DIR, REQUEST_LIMIT, COLORS
                                              File "/home/xbian/.kodi/addons/plugin.video.twitch/resources/lib/addon/constants.py", line 21, in <module>
                                                from twitch.oauth.v5 import scopes
                                              File "/home/xbian/.kodi/addons/script.module.python.twitch/resources/lib/twitch/oauth.py", line 5, in <module>
                                                from six.moves.urllib_parse import urlsplit, urlencode
                                            ImportError: No module named moves.urllib_parse
                                            -->End of Python script error report<--
16:00:55.228  97.191811 T:1954661200   ERROR: GetDirectory - Error getting plugin://plugin.video.twitch/
16:00:55.342  97.305336 T:1954661200   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.twitch/) failed
16:01:02.783 104.746536 T:1637872560   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: No module named moves.urllib_parse
                                            Traceback (most recent call last):
                                              File "/home/xbian/.kodi/addons/plugin.video.twitch/resources/lib/routes.py", line 22, in <module>
                                                from addon import utils, api, menu_items, cache
                                              File "/home/xbian/.kodi/addons/plugin.video.twitch/resources/lib/addon/utils.py", line 28, in <module>
                                                from constants import CLIENT_ID, REDIRECT_URI, LIVE_PREVIEW_TEMPLATE, Images, ADDON_DATA_DIR, REQUEST_LIMIT, COLORS
                                              File "/home/xbian/.kodi/addons/plugin.video.twitch/resources/lib/addon/constants.py", line 21, in <module>
                                                from twitch.oauth.v5 import scopes
                                              File "/home/xbian/.kodi/addons/script.module.python.twitch/resources/lib/twitch/oauth.py", line 5, in <module>
                                                from six.moves.urllib_parse import urlsplit, urlencode
                                            ImportError: No module named moves.urllib_parse
                                            -->End of Python script error report<--
16:01:03.087 105.050560 T:1954661200   ERROR: GetDirectory - Error getting plugin://plugin.video.twitch/
16:01:03.091 105.054764 T:1954661200   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.twitch/) failed

Edit:
Just to add, it seems I have the urllib modules installed? I dunno...
Code:
# find / -type f -iname "*urllib*"
/home/xbian/.kodi/addons/packages/script.module.urllib3-1.22.zip
/var/cache/apt/archives/python-urllib3_1.9.1-3_all.deb
/var/cache/apt/archives/python3-urllib3_1.9.1-3_all.deb
/var/lib/dpkg/info/python-urllib3.list
/var/lib/dpkg/info/python-urllib3.postinst
/var/lib/dpkg/info/python-urllib3.md5sums
/var/lib/dpkg/info/python-urllib3.prerm
/var/lib/dpkg/info/python3-urllib3.list
/var/lib/dpkg/info/python3-urllib3.postinst
/var/lib/dpkg/info/python3-urllib3.md5sums
/var/lib/dpkg/info/python3-urllib3.prerm
/usr/lib/python2.7/lib2to3/fixes/fix_urllib.py
/usr/lib/python2.7/lib2to3/fixes/fix_urllib.pyc
/usr/lib/python2.7/urllib.py
/usr/lib/python2.7/urllib2.py
/usr/lib/python2.7/urllib.pyc
/usr/lib/python2.7/urllib2.pyc
/usr/lib/python3.4/lib2to3/fixes/fix_urllib.py
/usr/lib/python3.4/lib2to3/fixes/__pycache__/fix_urllib.cpython-34.pyc
#



RE: [RELEASE] Twitch.tv - anxdpanic - 2017-11-09

@qwertyy I don't believe so.

@blackcap: You're missing 'six' by the looks of it, install from zip; http://mirrors.kodi.tv/addons/krypton/script.module.six/script.module.six-1.9.0.zip you may also need to update requests; http://mirrors.kodi.tv/addons/krypton/script.module.requests/script.module.requests-2.18.4.zip


RE: [RELEASE] Twitch.tv - qwertyy - 2017-11-09

Can you tell the reason why this works for YouTube and not with twitch?

There is another issue I have found. If I activate input stream then vod videos like past broadcasts cannot be played

Here is a log file: https://mega.nz/#!LtlTmCja!1I0Vb0ok3vZ2rVUhgQPlrX22LOP787NLOZmWy5vkOqo


RE: [RELEASE] Twitch.tv - anxdpanic - 2017-11-09

Thanks for reporting, please use a pastebin type site in the future if possible, prefer not downloading the logs. 

Yea there are also some irl live streams that do not work as well(seems to be ones using the mobile app), as I find the time I'll be double checking and reporting any issues to peak3d to take a look at for inputstream.adaptive. 

They handle live streams differently, YouTube live content uses mpeg-dash, and Twitch uses hls being the major difference. I don't see any shifting available to Twitch content via the web either, so I'm assuming its unlikely at this point, will see what happens after taking care of the above.


RE: [RELEASE] Twitch.tv - qwertyy - 2017-11-09

There is another Addon which uses HLS Livestream and support Timeshift function. It is the eurosport player from JinJin, maybe you can contact him and ask for support?


RE: [RELEASE] Twitch.tv - eikum - 2017-11-20

Is there any issue with this addon? Got some issue with freezing picture and after some attempt, it stops the stream.
Its nothing wrong with my network, works perfectly with the twitch ios app on my ipad and twitch for appleTv, no freezing or lagging.

Kodi os: libreelec and osmc


RE: [RELEASE] Twitch.tv - CrappyGamingXD - 2018-01-07

So i am trying to get a machine to just play monstercat radio on startup. I tried using livestreamer, but that stops after a couple of seconds for no reason. i just want the audio. I want to just plug it in and it to boot up then play, because i will have no peripherals in it. Does this do that?

Also does it work on raspberry pi?


No following button - Deventhedudee - 2018-01-16

I have logged im but the following button will not show up i keep turning it off and on in the settings but nothing happens


This forum uses Lukasz Tkacz MyBB addons.