Skip to content

Commit

Permalink
tweaked the imgur url responses a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ask-compu committed May 4, 2016
1 parent 9e62850 commit 54a6e30
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions modules/head.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,9 +1014,9 @@ def galleryalbum(self, m, startinclass, origin):
downs = jsonstring['data']['downs']
reply = self.imgurcolors + 'Album - '
if title:
reply += title
reply += title + ' -'
else:
reply += 'No Title'
reply += 'No Title -'
if author:
reply += ' by ' + author
else:
Expand All @@ -1042,9 +1042,9 @@ def album(self, m, startinclass, origin):
author = jsonstring['data']['account_url']
reply = self.imgurcolors + 'Album - '
if title:
reply += title
reply += title + ' -'
else:
reply += 'No Title'
reply += 'No Title -'
if author:
reply += ' by ' + author
else:
Expand Down Expand Up @@ -1073,9 +1073,9 @@ def image(self, m, startinclass, origin):
height = jsonstring['data']['height']
reply = self.imgurcolors
if title:
reply += title
reply += title + ' -'
else:
reply += 'No Title'
reply += 'No Title -'
reply += ' Uploaded on ' + created_format + ' \002Resolution:\017' + str(width) + '×' + str(height) + ' \002Type:\017' + mime
if animated == True:
reply += ' Animated'
Expand All @@ -1099,9 +1099,9 @@ def reddit(self, m, startinclass, origin):
subreddit = jsonstring['data']['section']
reply = self.imgurcolors
if title:
reply += title
reply += title + ' -'
else:
reply += 'No Title'
reply += 'No Title -'
reply += ' Uploaded to /r/' + subreddit + ' on ' + created_format + ' \002Resolution:\017' + str(width) + '×' + str(height) + ' \002Type:\017' + mime
if animated == True:
reply += ' Animated'
Expand Down

0 comments on commit 54a6e30

Please sign in to comment.