Fix if
This commit is contained in:
parent
7783ee32e4
commit
d2ae468427
|
@ -82,7 +82,7 @@ async def _handle_video(video_id, video_title):
|
||||||
too_many_attempts_count += 1
|
too_many_attempts_count += 1
|
||||||
elif match := live_regex.match(message.rstrip('.')):
|
elif match := live_regex.match(message.rstrip('.')):
|
||||||
end_schedule_time = match.group(1) or 0
|
end_schedule_time = match.group(1) or 0
|
||||||
is_premiere = match.group(2).lower().startswith('premieres in ')
|
is_premiere = match.group(2).lower() == 'premieres'
|
||||||
if is_premiere:
|
if is_premiere:
|
||||||
notify_text = 'Premiere started'
|
notify_text = 'Premiere started'
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue