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