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 - anxdpanic - 2017-04-15

Thanks, caught the typo after I just pushed the updates. (beta3 now)

That would suggest that your oauth token is invalid, so you may have to double check it or regenerate a new one.

The negative side effects are that you don't have any function of your logged in self. Removing the OAuth Token from settings would effectively be the same and will not generate the pop up.


RE: [RELEASE] Twitch.tv - JSLee - 2017-04-15

(2017-04-15, 14:11)anxdpanic Wrote: If you are able please post a debug log (wiki) with the error.

Ok this morning after my kodi box has been off overnight that error has not come back since.. (I didn't reboot after upgrading to v2 yesterday)


RE: [RELEASE] Twitch.tv - Crowly - 2017-04-16

Just a little feedback on the new "menu structure", it has a at least an extra step to get to where I want to go. Having a "Following Live Channels" instead of or as an alternative to "Following >> Live Channels" would be nice, the same goes for "Following Channels" / "Following >> Channels".

This may be in 1.x as well, but haven't used the search function in that version (that I can remember): When searching for a "Video id/url" I have to prefix the id with "videos/", that was not intuitive, I expected to just enter the video id. I suspect this is to differentiate between videos and clips. If that is the case a "Search Video Id" and a "Search Clip Id" option would be better.


RE: [RELEASE] Twitch.tv - anxdpanic - 2017-04-16

Thanks for the feedback Smile

On my rbp I use a favorite to the Following folder which alleviates that. I think there is now 5 menu items to Following; to flatten all ends in a long main menu, to flatten some ends in 'following - this, following - that, following - the rest' which seems like a worse structure overall.

You have to provide the whole video id, whether by url string or by id. If you had to include it as 'videos/56443121' that means the video id for that vod is 'videos56443121' and that would also work.

Twitch vod id's can be 'a56443121', 'c56443121', 'v56443121', 'videos56443121' which would be all different vods.

* the vod number used is an example so don't expect it to work as a test.


RE: [RELEASE] Twitch.tv - ipari - 2017-04-16

(2017-04-14, 19:17)anxdpanic Wrote: No eta. It's at beta2 now, and things seem to be pretty smooth so hopefully sooner rather than later. Smile

For past broadcasts in v2 you can context menu on the 'Past Broadcasts' folder and change the sort by parameter.
There are sorting options added where possible for the twitch api.

Okay, thank you for this. Now it all makes sense again Laugh


RE: [RELEASE] Twitch.tv - Crowly - 2017-04-16

(2017-04-16, 13:28)anxdpanic Wrote: to flatten some ends in 'following - this, following - that, following - the rest' which seems like a worse structure overall.
Not everything, just the most used, which I think would be "following (live) channels" and "browse games". The 1.x layout for followed channels worked well. Using Kodi fav's is an option, but I would still prefer the addon to have solution where you wouldn't "need" to use favorites.

Quote:You have to provide the whole video id, whether by url string or by id. If you had to include it as 'videos/56443121' that means the video id for that vod is 'videos56443121' and that would also work.

Twitch vod id's can be 'a56443121', 'c56443121', 'v56443121', 'videos56443121' which would be all different vods.
The addon doesn't make this very clear. If I see an url, ex: https://www.twitch.tv/videos/134652671, I would expect to just search for 134652671 and for the addon to add whatever else is needed, or search in all possible prefix options (or use a wildcard). Another option could be to have a one time popup on first search, or something else suitable, showing some info about what is needed for a valid search query.


RE: [RELEASE] Twitch.tv - anxdpanic - 2017-04-16

'Most used' is subjective and there are no stats for me to go on there. Will think on options.

That url/id search isn't a supported option for twitch api at all, its a regex/find in a string for a valid id. I can add example usage to the plot/description for that search item for clearer explanation.
Time stamped urls are also supported in this search as well. eg: hxxp://twitch.tv/gamesdonequick/v/113336135?t=1h52m35s (will start playback at the timestamp)


RE: [RELEASE] Twitch.tv - anxdpanic - 2017-04-16

@Crowly Just pushed an update, in the Settings you can now add/remove items to/from the main menu


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

If everything goes well looking to reach a release point come end of week, official repository will follow.
If anyone is interested in testing: respository.zip || install from zip (wiki)

Outside of any bugs that come up, I would like to add handling for audio only transcodes if possible but I have not been able to find a stream/vod that uses the Audio Only transcode. If anyone has an example of a stream/vod that does it would be appreciated. Audio only is now added.


RE: [RELEASE] Twitch.tv - flohav - 2017-04-17

Hello,
I'm having a "Client ID Mismatch" pop-up and can't log in. I generated a new OAUTH token but nothing changed. BTW, the adress given in the "Get OAUTH token" (https://goo.gl/arfeqk) gives a 404 error.

Here is an extract of the debug log :

Code:
18:47:29.917 T:1305900016   ERROR: Twitch: Error: OAuth Client-ID mismatch: Token created using default Client-ID |False|
18:47:28.445 T:1305900016   DEBUG: Twitch: Version: |2.0.0~beta5| Kodi Version: |17.1| -> |17|1||0|| (ENCODED)
18:47:28.445 T:1305900016   DEBUG: Twitch: Queries: |{'mode': 'main'}| Args: |['plugin://plugin.video.twitch/', '155', '']|
18:47:28.445 T:1305900016   DEBUG: Twitch: Calling cached method: |addon.api.Twitch.valid_token|
18:47:29.122 T:1261433840   DEBUG: CWebServer[8080]: request received for /BasicDeviceDescription.xml
18:47:29.916 T:1305900016   DEBUG: Previous line repeats 1 times.
18:47:29.916 T:1305900016   DEBUG: Twitch: {
                                                "token": {
                                                    "user_id": "108121788",
                                                    "valid": true,
                                                    "user_name": "flohav",
                                                    "client_id": "q6batx0epp608isickayubi39itsckt",
                                                    "authorization": {
                                                        "scopes": [
                                                            "chat_login"
                                                        ],
                                                        "created_at": "2017-04-17T16:27:08Z",
                                                        "updated_at": "2017-04-17T16:27:08Z"
                                                    }
                                                }
                                            }
18:47:29.917 T:1305900016   ERROR: Twitch: Error: OAuth Client-ID mismatch: Token created using default Client-ID |False|



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

The add-on won't work with that oauth token, it needs to be generated with the necessary scopes.

Try clearing function cache, Settings - Cache then using Get Token again. Just in case, the url is also case sensitive.


RE: [RELEASE] Twitch.tv - flohav - 2017-04-17

Thanks for the quick reply.
I had already tried the reset cache function, but didn't work. I redid the steps (clear cache and get oauth token) but I still have the same error. FYI i'm on OSMC RPi3, don't know if it matters.

EDIT : I went to http://www.twitchapps.com/tmi/ to generate my token, as mentioned in GitHub, is that correct?


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

I am running OSMC rbp2 and all checks out fine, and google is returning the shortened url for you. There were no uppercase letters in your url?


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

No, http://www.twitchapps.com/tmi/ is for version one and only allows for chat. For version 2 it has to be generated by visiting the goo.gl url. the url is very long so needs to be shortened for us to type out.


RE: [RELEASE] Twitch.tv - flohav - 2017-04-17

Hmm strange, I tried with uppercase letters but I still got Google telling me "404: Page not found – the page https://goo.gl/ARFEQK does not exist."

Here is a picture of the pop-up with the adress: http://imgur.com/gQHOJEJ

EDIT : OK I think I get it, due to my skin all characters are uppercase, I will change and try