Skip to content

Commit

Permalink
Fix regex view loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Saeed Dehqan authored and Saeed Dehqan committed Aug 18, 2020
1 parent b3ea351 commit 1c28951
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions evine.go
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,8 @@ func crawlIO() error {
go func() error {
defer PROG.Gui.Update(func(g *gocui.Gui) error {
g.DeleteView("LOADER")
// Refresh the status line. the status line shows the elapsed time as second and obtained URLs
fmt.Fprintln(VIEWS_OBJ["STATUS_LINE"], fmt.Sprintf("[Elapsed:%fs] | [Obtained:%d] | [Status:Done]", sinceTime(), len(RESULTS.URLs)))
return nil
})
urparse, err := url.Parse(trim(VIEWS_OBJ["URL"].Buffer()))
Expand Down Expand Up @@ -1416,8 +1418,6 @@ func crawlIO() error {
return nil
}()
PROG.currentPage = respObj.Buffer()
// Refresh the status line. the status line shows the elapsed time as second and obtained URLs
refStatusLine(fmt.Sprintf("[Elapsed:%fs] | [Obtained:%d] | [%s]", sinceTime(), len(RESULTS.URLs), PROJECT_NAME))
return nil
}

Expand Down Expand Up @@ -1477,12 +1477,13 @@ func outcomeIO() {
mapPrint(fmt.Sprintf("[*] Phones | %d", len(RESULTS.Phones)), RESULTS.Phones)
}
if !sliceSearch(&ALL_KEYS, q) {
pushing("[*] '." + q + "'")
var medias []string
for k := range RESULTS.Medias {
if checkPostfix(q, k) {
pushing(k)
medias = append(medias, k)
}
}
slicePrint(fmt.Sprintf("[*] '%s' | %d", q, len(medias)), medias)
}
}
PROG.Gui.DeleteView("LOADER")
Expand Down

0 comments on commit 1c28951

Please sign in to comment.