forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-09-14 17:15:55 +02:00
parent 97879ee600
commit 79578da7b3
1 changed files with 2 additions and 2 deletions

View File

@ -890,11 +890,11 @@ def submit_post(v):
} }
) )
if tag: if tag:
thumb_candidate_urls.append(expand_url(post.url, tag['content'])) thumb_candidate_urls.append(expand_url(new_post.url, tag['content']))
#parse html doc for <img> elements #parse html doc for <img> elements
for tag in soup.find_all("img", attrs={'src':True}): for tag in soup.find_all("img", attrs={'src':True}):
thumb_candidate_urls.append(expand_url(post.url, tag['src'])) thumb_candidate_urls.append(expand_url(new_post.url, tag['src']))
#now we have a list of candidate urls to try #now we have a list of candidate urls to try