maybe don't loop infinitely

This commit is contained in:
Ted Unangst 2022-02-06 03:35:27 -05:00
parent 3b37817558
commit 90fc23212b
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ func hootextractor(r io.Reader, url string, seen map[string]bool) string {
if author != wanted { if author != wanted {
continue continue
} }
for img := imgsel.MatchFirst(twp); img != nil; imgsel.MatchFirst(twp) { for _, img := range imgsel.MatchAll(twp) {
img.Parent.RemoveChild(img) img.Parent.RemoveChild(img)
div.AppendChild(img) div.AppendChild(img)
} }