Import forum profile pictures and host them directly

This commit is contained in:
rubenwardy
2023-05-05 17:14:23 +01:00
parent a026e2c2bb
commit 3ccb165522
6 changed files with 96 additions and 55 deletions

View File

@@ -92,7 +92,7 @@ def getProfile(url, username):
url = getProfileURL(url, username)
try:
req = urllib.request.urlopen(url, timeout=5)
req = urllib.request.urlopen(url, timeout=15)
except urllib.error.HTTPError as e:
if e.code == 404:
return None