From 4b74673795c63c5e1e969115cbdefb114cac4b3e Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Sun, 19 Oct 2025 17:06:44 -0500 Subject: [PATCH] Bug fix: Use search instead of match for checking if the title matches the title_match regex for custom dummy. --- apps/output/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/output/views.py b/apps/output/views.py index 6e93d07c..ef6b949a 100644 --- a/apps/output/views.py +++ b/apps/output/views.py @@ -416,7 +416,8 @@ def generate_custom_dummy_programs(channel_id, channel_name, now, num_days, cust logger.warning(f"Pattern was: {repr(date_pattern)}") # Try to match the channel name with the title pattern - title_match = title_regex.match(channel_name) + # Use search() instead of match() to match JavaScript behavior where .match() searches anywhere in the string + title_match = title_regex.search(channel_name) if not title_match: logger.debug(f"Channel name '{channel_name}' doesn't match title pattern") return [] # Return empty, will use default