From: Conny Sjöblom Date: Tue, 4 Feb 2014 21:56:51 +0000 (+0200) Subject: Fixed header X-Git-Url: https://jfr.im/git/erebus.git/commitdiff_plain/c6b4a1774b75849ea859fc0ac0665680142def8a Fixed header --- diff --git a/modules/twitch.py b/modules/twitch.py index 68e6586..466d430 100644 --- a/modules/twitch.py +++ b/modules/twitch.py @@ -1,5 +1,5 @@ # Erebus IRC bot - Author: Conny Sjoblom -# Spotify URL Checker +# Twitch URL Checker # This file is released into the public domain; see http://unlicense.org/ # module info @@ -20,7 +20,6 @@ modstop = lib.modstop import re import urllib2 import json -from BeautifulSoup import BeautifulSoup checkfor = "twitch" hostmask_regex = re.compile('^(.*)!(.*)@(.*)$') diff --git a/modules/youtube.py b/modules/youtube.py index a0c9c9d..e1c61a3 100644 --- a/modules/youtube.py +++ b/modules/youtube.py @@ -1,5 +1,5 @@ # Erebus IRC bot - Author: Conny Sjoblom -# Spotify URL Checker +# Youtube URL Checker # This file is released into the public domain; see http://unlicense.org/ # module info @@ -66,7 +66,4 @@ def privmsg_hook(bot, line): html_parser = HTMLParser.HTMLParser() respdata = urllib2.urlopen(url).read() soup = BeautifulSoup(respdata) - try: - bot.msg(line.split()[2], BeautifulSoup(soup.title.string, convertEntities=BeautifulSoup.HTML_ENTITIES)) - except: - pass + bot.msg(line.split()[2], BeautifulSoup(soup.title.string, convertEntities=BeautifulSoup.HTML_ENTITIES))