removing the appending of .png to reddit images

This commit is contained in:
luke 2020-10-10 16:59:18 -07:00
parent d06ca3d44b
commit 98af7094fe

View File

@ -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