Package Details: rofi-twitch 1.0.0-1

Git Clone URL: https://aur.archlinux.org/rofi-twitch.git (read-only, click to copy)
Package Base: rofi-twitch
Description: rofi-based launcher for Twitch streams
Upstream URL: None
Licenses: MIT
Submitter: zopieux
Maintainer: zopieux
Last Packager: zopieux
Votes: 1
Popularity: 0.000000
First Submitted: 2018-03-04 20:46 (UTC)
Last Updated: 2018-03-04 20:46 (UTC)

Pinned Comments

zopieux commented on 2020-08-26 20:49 (UTC)

Grmbl, sounds like this change went into effect, breaking queries without a OAuth token – even though these endpoints are public, not user-specific. What a shitty platform. Sadly I don't use this script anymore so I don't have time to maintain it. Feel free to create your own application and adapt the script to add the OAuth token renewal logic.

Latest Comments

hringriin commented on 2020-08-27 20:39 (UTC)

Uhh, well yeah, not that important to write it / adapt it by myself, to be honest :)

zopieux commented on 2020-08-26 20:49 (UTC)

Grmbl, sounds like this change went into effect, breaking queries without a OAuth token – even though these endpoints are public, not user-specific. What a shitty platform. Sadly I don't use this script anymore so I don't have time to maintain it. Feel free to create your own application and adapt the script to add the OAuth token renewal logic.

hringriin commented on 2020-08-26 06:53 (UTC)

It's broken, but I have no idea why.

>$ rofi-twitch
Traceback (most recent call last):
  File "/usr/bin/rofi-twitch", line 202, in <module>
    main()
  File "/usr/bin/rofi-twitch", line 190, in main
    ret = func(*args)
  File "/usr/bin/rofi-twitch", line 53, in game_list
    games = cached('games', getter)
  File "/usr/bin/rofi-twitch", line 45, in cached
    data = CACHE[key] = getter(*args)
  File "/usr/bin/rofi-twitch", line 51, in getter
    return req('helix/games/top', first=MANY_RESULTS)['data']
  File "/usr/bin/rofi-twitch", line 36, in req
    p.raise_for_status()
  File "/usr/lib/python3.8/site-packages/requests/models.py", line 941, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.twitch.tv/helix/games/top?first=100