mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
Bug fix: Use search instead of match for checking if the title matches the title_match regex for custom dummy.
This commit is contained in:
parent
6a85475402
commit
4b74673795
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue