This commit is contained in:
mwiegand 2022-04-10 22:34:38 +02:00
parent 7ff7e0ed4a
commit 98ef086160

View file

@ -146,7 +146,7 @@ def parse_trs(trs):
message=message, message=message,
) )
# download steamuserimages # download steamuserimages
for url_string in re.findall(r'(https?://\S+)', text): for url_string in re.findall(r'(https?://\S+)', message):
url = urlparse(url_string) url = urlparse(url_string)
if url.netloc.startswith('steamuserimages'): if url.netloc.startswith('steamuserimages'):
response = requests.get(url_string) response = requests.get(url_string)