Giter Site home page Giter Site logo

buzz / twitch-indicator Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 9.0 410 KB

Twitch indicator for Linux. Tracks your followed channels and notifies when they go live.

License: GNU General Public License v3.0

Python 98.23% HTML 1.77%
twitch desktop-notifications desktop-application indicator-applet linux

twitch-indicator's Introduction

Twitch Indicator

This program is not affiliated, authorized, endorsed by, or in any way officially connected to Twitch.

screenshot 1 screenshot 2

Twitch Indicator for Linux. Tracks your followed channels and notifies when they go live.

Installation

Arch Linux

Available in AUR: twitch-indicator

Install using pipx

pipx handles virtual environment creation and package installation for you automatically.

# install package
$ pipx ensurepath
$ pipx install git+https://github.com/buzz/twitch-indicator

# install files
$ mkdir -p \
  $HOME/.local/share/applications \
  $HOME/.local/share/glib-2.0/schemas
$ wget -q \
  -O $HOME/.local/share/icons/twitch-indicator.svg \
  https://raw.githubusercontent.com/buzz/twitch-indicator/main/twitch_indicator/data/twitch-indicator.svg
$ wget -q \
  -O $HOME/.local/share/glib-2.0/schemas/apps.twitch-indicator.gschema.xml \
  https://raw.githubusercontent.com/buzz/twitch-indicator/main/data/apps.twitch-indicator.gschema.xml
$ wget -q \
  -O $HOME/.local/share/applications/twitch-indicator.desktop \
  https://raw.githubusercontent.com/buzz/twitch-indicator/main/data/twitch-indicator.desktop

# compile settings schema
$ glib-compile-schemas $HOME/.local/share/glib-2.0/schemas

Credits

Forked from twitch-indicator by Rolandas Barysas.

License

Licensed under GNU General Public License v3.0.

Previously licensed under zlib License.

twitch-indicator's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

twitch-indicator's Issues

This app is hanging while making call to Twitch

I use Manjaro-ARM XFCE in a Raspberry Pi 400. When I run the app is sends the call to Twitch but then stops and shows in dark gray Checking... and Live channels and doesn't change to show the live channels. This happened after I cleared out profile pics from the app's folder located in .cache. I know Twitch is currently up and running at the time of this post. Also, I have a browser extinction that does the same thing as your app, and it shows me the live channels, so I know Twitch hasn't blocked that functionality. Would you please fix this and update the app.

Issue opening menu to see live streams

I'm having an issue where menu doesn't pop up a list of live streams for me to select. I can see there are x number of streams live, but it doesn't pop up the list of live streams when I mouse over it. I get the following error:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/twitch_indicator/indicator.py", line 77, in add_streams_menu
    if enabled_channel_ids[stream["id"]]:
KeyError: 22253819

I tried to poke around a bit, but it's been a while and I can't seem to get it to run directly from my cloned repo

I forgot to add:
Archlinux, python3.10

Do not work with libnotify 0.8

On Arch Linux with libnotify 0.8.0 and twitch-indicator 1.3:

Traceback (most recent call last):
  File "/usr/bin/twitch-indicator", line 33, in <module>
    sys.exit(load_entry_point('twitch-indicator==1.3', 'gui_scripts', 'twitch-indicator')())
  File "/usr/bin/twitch-indicator", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/twitch_indicator/__main__.py", line 6, in <module>
    gi.require_version("Notify", "0.7")
  File "/usr/lib/python3.10/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available for version %s' %
ValueError: Namespace Notify not available for version 0.7

No longer able to find streams

Recently Twitch Indicator has stopped finding any streams. It looks like its failing to load my user id

File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/usr/bin/twitch-indicator", line 329, in refresh_streams followed_channels = self.tw.fetch_followed_channels(self.USER_ID) File "/usr/bin/twitch-indicator", line 32, in fetch_followed_channels base_uri = TWITCH_API_URL + 'users/follows?from_id=' + user_id TypeError: can only concatenate str (not "HTTPError") to str

Not launching on Manjaro-ARM XFCE

I use Manjaro-ARM XFCE on a Raspberry Pi 400. I just received the indicator that you have an update of your app ready. I quit out of the app and ran the updated. When I tried to launch it again, nothing happened. I then added it to the desktop and tried to launch it with the same results. I then tried rebuilding it and launching it and nothing. I did a restart of my Pi and tried to launch it and nothing happened. Previously, before the update, I had added it to my auto start so it would launch at startup of my Pi. I removed it from auto start then deleted it and restarted my Pi then reinstalled it. I went to launch it and nothing happened. What is going on with it? Please fix it so I can use it again. It is a very valuable tool for me.

Gives error 410 (Gone) as of today.

Possibly, Twitch removed the functionality or changed something? Or do I need to reauthorise somehow, perhaps?

Edit: I'm on 1.5-1, whereas AUR reports 1.6-1 as newest. I'mma try after updating and report back or close the issue.

Live channel icons are huge

I don't know if it's intended, but now when I open the indicator to see live streams the icons are huge:

Screenshot_2022-03-01_11:23:36

The rest is fine, it only stranges me because it didn't used to work like that lol

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.