Skip to content
This repository was archived by the owner on Mar 3, 2018. It is now read-only.
This repository was archived by the owner on Mar 3, 2018. It is now read-only.

Does not work the first time #12

Closed
@hotice

Description

@hotice

The first time you run the indicator and add your Twitch username, it doesn't work, and the following output is displayed in the terminal:

$ twitch-indicator 
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/bin/twitch-indicator", line 238, in refresh_streams
    self.live_streams = self.tw.fetch_live_streams(self.followed_channels)
  File "/usr/bin/twitch-indicator", line 57, in fetch_live_streams
    self.f = urllib.urlopen("https://api.twitch.tv/kraken/streams?client_id=oe77z9pq798tln7ngil0exwr0mun4hj&channel={0}".format(','.join(self.channels_offset)))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 340-342: ordinal not in range(128)

After restarting the indicator, it starts working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions