diff options
author | lassulus <lassulus@googlemail.com> | 2014-01-07 20:51:33 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2014-01-07 20:51:33 +0100 |
commit | f5153e841834bd78808c2e6dfe4e82e64c0736c7 (patch) | |
tree | d9fe49a064c162c1ce5fa39b9dbb016e55b62eb9 | |
parent | 0e3431eefe44ca32d543312caa4081f8acc269b4 (diff) |
ircbot: fix cr in url
-rwxr-xr-x | ircbot/rssbot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ircbot/rssbot.py b/ircbot/rssbot.py index 5e2ca577..225e6f13 100755 --- a/ircbot/rssbot.py +++ b/ircbot/rssbot.py @@ -58,7 +58,7 @@ class RssBot(irc.bot.SingleServerIRCBot): # self.send(entry.title + " " + entry.link + " com: " + entry.comments) #except AttributeError: shorturl = subprocess.check_output(["curl", "-sS", "-F", "uri=" + entry.link, self.url_shortener]).decode() - self.send(entry.title + " " + shorturl.strip('\n') + '#' + entry.link.partition('://')[2].partition('/')[0]) + self.send(entry.title + " " + shorturl.strip('\n').strip('\r') + '#' + entry.link.partition('://')[2].partition('/')[0]) self.oldnews.append(entry.link) self.lastnew = datetime.now() sleep(self.to) |