This commit is contained in:
Aevann1 2021-12-16 19:59:30 +02:00
parent ce6e94e07a
commit 08b4773941
6 changed files with 10 additions and 7 deletions

View file

@ -603,7 +603,9 @@ def thumbnail_thread(pid):
time.sleep(5)
post = db.query(Submission).filter_by(id=pid).first()
fetch_url=post.url
fetch_url = post.url
if fetch_url.startswith('/'): fetch_url = request.host_url[:-1] + fetch_url
headers={"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Safari/537.36"}