From b1fd1467bd7fad1a015a1f23e42f7130f194728e Mon Sep 17 00:00:00 2001 From: Gordon Shumway Date: Tue, 17 Oct 2023 03:22:00 -0400 Subject: [PATCH] SpiffyTitles: Improve Twitter/X match pattern --- SpiffyTitles/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpiffyTitles/plugin.py b/SpiffyTitles/plugin.py index 468cd98..a46ef38 100644 --- a/SpiffyTitles/plugin.py +++ b/SpiffyTitles/plugin.py @@ -1754,7 +1754,7 @@ class SpiffyTitles(callbacks.Plugin): results = {} soup = BeautifulSoup(response["html"]) results["text"] = soup.get_text(" ").strip() - match = re.match(r"(.*)—(.*) \((.*)\) (.*)", results["text"]) + match = re.match(r"(.*) — (.*) \((.*)\) (.*)", results["text"]) if match: results["content"] = match.group(1) results["name"] = match.group(2)