Skip to content

Commit

Permalink
Typo, UnusedVar
Browse files Browse the repository at this point in the history
  • Loading branch information
vt-idiot committed May 3, 2024
1 parent 42d1860 commit bfaaed0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/scrape/slrstudios.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,23 +151,23 @@ func SexLikeReal(wg *sync.WaitGroup, updateSite bool, knownScenes []string, out
if !isTransScene {
appCover := gjson.Get(JsonMetadataA, "thumbnailUrl").String()
desktopCover := strings.Replace(gjson.Get(JsonMetadataA, "thumbnailUrl").String(), "app", "desktop", -1)
desktopCresp, desktopCerr := http.Head(desktopCover)
desktopCresp, _ := http.Head(desktopCover)
if desktopCresp.StatusCode == 200 {
coverURL := desktopCover
sc.Covers = append(sc.Covers, coverURL)
} else {
appCresp, appCerr := http.Head(appCover)
appCresp, _ := http.Head(appCover)
if appCresp.StatusCode == 200 {
coverURL := appCover
sc.Covers = append(sc.Covers, coverURL)
defer appResp.Body.Close()
defer appCresp.Body.Close()
} else {
e.ForEach(`link[as="image"]`, func(id int, e *colly.HTMLElement) {
sc.Covers = append(sc.Covers, e.Request.AbsoluteURL(e.Attr("href")))
})
}
}
defer desktopResp.Body.Close()
defer desktopCresp.Body.Close()
} else {
posterURLFound := false
e.ForEach(`script[type="text/javascript"]`, func(id int, e *colly.HTMLElement) {
Expand Down

0 comments on commit bfaaed0

Please sign in to comment.