[RssNotify] Fix git.io shortening

master
sfan5 2015-02-04 13:42:19 +01:00
parent 9328b211c8
commit 06b6a43dad
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ def rsscheck(phenny, input):
l, code = web.post("http://git.io/create", {'url': feed_entry.link})
if code == 200:
l = str(l, 'utf-8')
if len(l.strip()) == 6:
if not ' ' in l: # If there are spaces it's probably an error
commit_link = "http://git.io/" + l
else:
commit_link = feed_entry.link