1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Correct issue where an invalid attribute is being referenced

This commit is contained in:
Phxntxm 2017-04-01 22:07:47 -05:00
parent 503f710a4b
commit f31dc9c24b

View file

@ -35,7 +35,7 @@ class Picarto:
# Channel is the name we are checking against that
# This creates a list of all users that match this channel name (should only ever be 1)
# And returns True as long as it is more than 0
if not self.channels:
if not self.online_channels:
return False
channel = re.search("(?<=picarto.tv/)(.*)", channel).group(1)
matches = [stream for stream in self.online_channels if stream['channel_name'].lower() == channel.lower()]