mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Improve the snarfer re so that index.php is not required
This commit is contained in:
parent
3dac2d986e
commit
6e728e74da
@ -216,7 +216,7 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp):
|
||||
_sfTitle = re.compile(r'Detail:(\d+) - ([^<]+)</title>', re.I)
|
||||
_linkType = re.compile(r'(\w+ \w+|\w+): Tracker Detailed View', re.I)
|
||||
def sourceforgeSnarfer(self, irc, msg, match):
|
||||
r"https?://(?:www\.)?sourceforge\.net/tracker/index\.php\?func=detail&aid=\d+&group_id=\d+&atid=\d+"
|
||||
r"https?://(?:www\.)?sourceforge\.net/tracker/(?:index\.php)?\?func=detail&aid=\d+&group_id=\d+&atid=\d+"
|
||||
url = match.group(0)
|
||||
fd = urllib2.urlopen(url)
|
||||
s = fd.read()
|
||||
|
Loading…
Reference in New Issue
Block a user