anxdpanic / plugin.video.twitch

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

Unable to play different videos #547

Open elgatito opened 3 years ago

elgatito commented 3 years ago

Context


Expected Behavior

Opening player for a playback


Current Behavior

Video cannot be started.


Steps to Reproduce

  1. Open Past broadcasts.
  2. Open specific video.
  3. Video cannot start.

Log

Please include a complete debug log.

https://pastebin.ubuntu.com/p/T42V9CPN3P/


Additional Information

Please provide any additional information that may be helpful.

I have tried to reset function cache. Interesting thing is that I tried to played same video, that started to view few days ago, and it was working fine, and now it does not. And it looks like it is only happening to specific channels (all videos of that channel/user).

This one is strange:

2021-03-02 12:54:39.441 T:3269456768   DEBUG: Twitch: Calling cached method: |twitch_addon.addon.api.Twitch._get_video_token|
2021-03-02 12:54:39.442 T:3269456768   DEBUG: script.module.python.twitch: POST QUERY: url: |https://gql.twitch.tv/gql|, params: |{}|, data: |[{'query': 'query PlaybackAccessToken_Template($login: String!, $isLive: Boolean!, $vodID: ID!, $isVod: Boolean!, $playerType: String!) {  streamPlaybackAccessToken(channelName: $login, params: {platform: "web", playerBackend: "mediaplayer", playerType: $playerType}) @include(if: $isLive) {    value    signature    __typename  }  videoPlaybackAccessToken(id: $vodID, params: {platform: "web", playerBackend: "mediaplayer", playerType: $playerType}) @include(if: $isVod) {    value    signature    __typename  }}', 'variables': {'isLive': False, 'vodID': u'v931426807', 'login': '', 'playerType': 'site', 'isVod': True}, 'operationName': 'PlaybackAccessToken_Template'}]|, headers: |{'Client-ID': u'ps2ed9zlj8zyqztsdz2tl4uys84b8k'}|, target_func: |vod_token|
2021-03-02 12:54:39.442 T:3269456768   DEBUG: script.module.python.twitch: Downloading: |https://gql.twitch.tv/gql|
2021-03-02 12:54:39.772 T:3269456768   DEBUG: script.module.python.twitch: url: |https://gql.twitch.tv/gql| parameters: |{}|
                                            {
                                                "error": "Bad Request",
                                                "message": "The \"Client-ID\" header is invalid.",
                                                "status": 400
                                            }

elgatito commented 3 years ago

It can be that video is available only to paid subscribers. I see that I cannot view old casts for some channels.