maybe don't loop infinitely
This commit is contained in:
parent
3b37817558
commit
90fc23212b
2
hoot.go
2
hoot.go
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue