BasioMeusPuga / twitchy

CLI streamlink wrapper for twitch.tv
GNU General Public License v3.0
91 stars 14 forks source link

IndexError: list index out of range #4

Closed lasers closed 7 years ago

lasers commented 7 years ago

Hi. I did it wrong anyway... attempting an username instead of channel. Thought you should know.

lasers~ twitchy -w some_random_username
 Checking 1 channel(s)...                                                                                                                                                                                                                     
Traceback (most recent call last):                                                                                                                                                                                                            
  File "/usr/bin/twitchy", line 1294, in <module>
    main()
  File "/usr/bin/twitchy", line 1285, in main
    watch(args.w, 'w')
  File "/usr/bin/twitchy", line 800, in watch
    get_status(status_check_required)
  File "/usr/bin/twitchy", line 772, in get_status
    alt_name = [v[1] for i, v in enumerate(status_check_required) if v[0] == channel_name][0]
IndexError: list index out of range
BasioMeusPuga commented 7 years ago

Hey.

Apparently I was doing case sensitive searches. Imagine my horror. This should be fixed now. Let me know?

lasers commented 7 years ago

Works okay now in latest master / fixed via commit https://github.com/BasioMeusPuga/twitchy/commit/62e9b11eb12e403a10520364894ba1bac47ad96f. Many thanks. Will close this now. :-)