From 1fde8e4600b2b0bad64cebce5de886bc907ea86d Mon Sep 17 00:00:00 2001 From: 0x68732f6e69622fff <191755490+0x68732f6e69622fff@users.noreply.github.com> Date: Wed, 29 Oct 2025 13:38:51 +0000 Subject: [PATCH] Fixes the issue where channel titles are truncated early after an apostrophe --- apps/m3u/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/m3u/tasks.py b/apps/m3u/tasks.py index d29c294b..4fa887e8 100644 --- a/apps/m3u/tasks.py +++ b/apps/m3u/tasks.py @@ -450,7 +450,7 @@ def parse_extinf_line(line: str) -> dict: if len(parts) != 2: return None attributes_part, display_name = parts[0], parts[1].strip() - attrs = dict(re.findall(r'([^\s]+)=["\']([^"\']+)["\']', attributes_part)) + attrs = dict(re.findall(r'([^\s]+)="([^"]+)"', attributes_part) + re.findall(r"([^\s]+)='([^']+)'", attributes_part)) # Use tvg-name attribute if available; otherwise, use the display name. name = get_case_insensitive_attr(attrs, "tvg-name", display_name) return {"attributes": attrs, "display_name": display_name, "name": name}