From d2ae46842796aa035849293c59488402d6e59d43 Mon Sep 17 00:00:00 2001 From: blank X Date: Sun, 4 Apr 2021 19:45:00 +0700 Subject: [PATCH] Fix if --- ytnotifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytnotifier.py b/ytnotifier.py index dba0fd6..c23ba5c 100644 --- a/ytnotifier.py +++ b/ytnotifier.py @@ -82,7 +82,7 @@ async def _handle_video(video_id, video_title): too_many_attempts_count += 1 elif match := live_regex.match(message.rstrip('.')): 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: notify_text = 'Premiere started' else: