removing the appending of .png to reddit images
This commit is contained in:
parent
3fbfb9c9de
commit
7ecf81e39f
@ -47,8 +47,4 @@ def get_image(boards, nsfw=False):
|
||||
return get_image(boards, nsfw=nsfw)
|
||||
image_url = response['data']['url'].replace('http://', 'https://')
|
||||
|
||||
if not image_url.endswith('png') or not image_url.endswith('jpg') or not image_url.endswith('gif'):
|
||||
image_url = image_url + '.png'
|
||||
|
||||
|
||||
return image_url
|
||||
|
Loading…
x
Reference in New Issue
Block a user