Skip to content

Commit

Permalink
Update javdatabase.go
Browse files Browse the repository at this point in the history
scraper: fix JAV Database cast scraping

HTML for scenes on JAVDB changed, "Featured Idols" has been replaced with "ABC-123 Actress/Idols"

no idea if this works right or not, it was ChatGPT's idea
  • Loading branch information
vt-idiot authored May 16, 2023
1 parent 9adce0a commit eaecb77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scrape/javdatabase.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func ScrapeJavDB(out *[]models.ScrapedScene, queryString string) {

// Cast
html.ForEach("h2.subhead", func(id int, h2 *colly.HTMLElement) {
if h2.Text == "Featured Idols" {
if strings.HasSuffix(h2.Text, "Actress/Idols") {
dom := h2.DOM
parent := dom.Parent()
if parent != nil {
Expand Down

0 comments on commit eaecb77

Please sign in to comment.