summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/url_titles.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/url_titles.py b/modules/url_titles.py
index eca708f..343ce5c 100644
--- a/modules/url_titles.py
+++ b/modules/url_titles.py
@@ -58,6 +58,14 @@ class Module:
# ignore spotify URLs
if 'open.spotify.com' in url:
continue
+
+ # Run AniDB URLs through AniDB module.
+ m = re.match('http://anidb.net/(perl-bin/animedb.pl?show=anime&aid=|a)(\d+)', url)
+ if m and 'anidb' in self.irc.modules:
+ aid = int(m.groups()[1])
+ titles.append(self.irc.modules['anidb'].get_info(aid))
+ continue
+
t = time.time()
try:
u = urllib2.urlopen(url)