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.
This commit is contained in:
James Vega 2004-12-10 04:53:16 +00:00
parent 78685a323f
commit 68569f1649

View File

@ -443,8 +443,8 @@ class Google(callbacks.PrivmsgCommandAndRegexp):
irc.reply(url, prefixName=False)
googleSnarfer = urlSnarfer(googleSnarfer)
_ggThread = re.compile(r'<br>Subject: ([^<]+)<br>', re.I)
_ggGroup = re.compile(r'Newsgroups: (?:<a[^>]+>)?([^<]+)(?:</a>)?', re.I)
_ggThread = re.compile(r'Subject: <b>([^<]+)</b>', re.I)
_ggGroup = re.compile(r'<TITLE>Google Groups :\s*([^<]+)</TITLE>', re.I)
_ggThreadm = re.compile(r'view the <a href=([^>]+)>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