From 68569f164982553aac81e6a6d3e19cf11c541862 Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 10 Dec 2004 04:53:16 +0000 Subject: [PATCH] Updated the easy stuff to work with groups.google.com's new layout. The rest will have to wait until Google decides to declare it non-beta or someone besides me is motivated enough to fix it. --- plugins/Google.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/Google.py b/plugins/Google.py index 75bf07940..f0fc314fc 100644 --- a/plugins/Google.py +++ b/plugins/Google.py @@ -443,8 +443,8 @@ class Google(callbacks.PrivmsgCommandAndRegexp): irc.reply(url, prefixName=False) googleSnarfer = urlSnarfer(googleSnarfer) - _ggThread = re.compile(r'
Subject: ([^<]+)
', re.I) - _ggGroup = re.compile(r'Newsgroups: (?:]+>)?([^<]+)(?:)?', re.I) + _ggThread = re.compile(r'Subject: ([^<]+)', re.I) + _ggGroup = re.compile(r'Google Groups :\s*([^<]+)', re.I) _ggThreadm = re.compile(r'view the ]+)>no', re.I) _ggSelm = re.compile(r'selm=[^&]+', re.I) def googleGroups(self, irc, msg, match): @@ -461,6 +461,9 @@ class Google(callbacks.PrivmsgCommandAndRegexp): mThread = None mGroup = None if 'threadm=' in url: + # Let's just return from here until google decides to stop being + # in beta for their groups site + return path = self._ggThreadm.search(text) if path is None: return