Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit a7af3c4
Author: vt-idiot <81622808+vt-idiot@users.noreply.github.com>
Date:   Mon May 15 22:43:25 2023 -0400

    Update javdatabase.go

    Appeasing gofmt...

commit 499749b
Author: vt-idiot <nyaab00d@gmail.com>
Date:   Tue May 16 02:36:48 2023 +0000

    Add duration to JAV Database scrape
  • Loading branch information
vt-idiot committed May 16, 2023
1 parent f6fc788 commit aa5da50
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/scrape/javdatabase.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package scrape

import (
"strings"

"github.com/PuerkitoBio/goquery"
"github.com/gocolly/colly/v2"
"github.com/nleeper/goment"
"github.com/xbapps/xbvr/pkg/models"
"strconv"
"strings"
)

func ScrapeJavDB(out *[]models.ScrapedScene, queryString string) {
Expand Down Expand Up @@ -90,7 +90,12 @@ func ScrapeJavDB(out *[]models.ScrapedScene, queryString string) {

} else if label == `Content ID:` {
contentId = tr.ChildText(`td.tablevalue`)

} else if label == "Runtime:" {
// Duration
sc.Duration, _ = strconv.Atoi(strings.Split(tr.ChildText(`td.tablevalue`), " ")[0])
}

})

// Screenshots
Expand Down

0 comments on commit aa5da50

Please sign in to comment.