mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 10:45:27 +00:00
Fix regex replacement pattern for M3U profile consistency in auto channel sync
This commit is contained in:
parent
3aa68c1a36
commit
10d5d487c3
1 changed files with 3 additions and 1 deletions
|
|
@ -1648,8 +1648,10 @@ def sync_auto_channels(account_id, scan_start_time=None):
|
|||
else ""
|
||||
)
|
||||
try:
|
||||
# Convert $1, $2, etc. to \1, \2, etc. for consistency with M3U profiles
|
||||
safe_replace_pattern = re.sub(r'\$(\d+)', r'\\\1', replace)
|
||||
new_name = re.sub(
|
||||
name_regex_pattern, replace, original_name
|
||||
name_regex_pattern, safe_replace_pattern, original_name
|
||||
)
|
||||
except re.error as e:
|
||||
logger.warning(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue