[fix] findthatmeme engine URLs have changed

This commit is contained in:
Austin-Olacsi 2024-11-26 09:02:27 -07:00 committed by Bnyro
parent 78f5300830
commit 55481a6377

View file

@ -35,8 +35,8 @@ def response(resp):
results = []
for item in search_res:
img = 'https://findthatmeme.us-southeast-1.linodeobjects.com/' + item['image_path']
thumb = 'https://findthatmeme.us-southeast-1.linodeobjects.com/thumb/' + item.get('thumbnail', '')
img = 'https://s3.thehackerblog.com/findthatmeme/' + item['image_path']
thumb = 'https://s3.thehackerblog.com/findthatmeme/thumb/' + item.get('thumbnail', '')
date = datetime.strptime(item["updated_at"].split("T")[0], "%Y-%m-%d")
formatted_date = datetime.utcfromtimestamp(date.timestamp())