reddit and imgur fixes
This commit is contained in:
parent
0abac29523
commit
9b92d73f3a
|
@ -74,4 +74,7 @@ def imgur(inp):
|
|||
if not items:
|
||||
return "No images found (use .imgur <subreddit> nsfw to show explicit content)"
|
||||
|
||||
return web.isgd("http://imgur.com/" + ','.join(items))
|
||||
if show_nsfw:
|
||||
return "{} \x02NSFW\x02".format(web.isgd("http://imgur.com/" + ','.join(items)))
|
||||
else:
|
||||
return web.isgd("http://imgur.com/" + ','.join(items))
|
|
@ -30,7 +30,7 @@ def reddit(inp):
|
|||
|
||||
# clean and split the input
|
||||
parts = inp.lower().strip().split()
|
||||
|
||||
id_num = None
|
||||
|
||||
# find the requested post number (if any)
|
||||
if len(parts) > 1:
|
||||
|
|
Reference in a new issue