Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
pops64 committed Sep 5, 2024
1 parent 1d35469 commit 5a1e79d
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 @@ -160,16 +160,16 @@ func SexLikeReal(wg *sync.WaitGroup, updateSite bool, knownScenes []string, out
log.Errorln("Method Head Failed on desktopCover", desktopCover, "with error", err)
} else {
if desktopCresp.StatusCode == 200 {
coverURL := desktopCover
sc.Covers = append(sc.Covers, coverURL)
coverURL := desktopCover
sc.Covers = append(sc.Covers, coverURL)
} else {
appCresp, err := http.Head(appCover)
if err != nil {
log.Errorln("Method Head Failed on appCover", appCover, "with error", err)
} else {
if appCresp.StatusCode == 200 {
coverURL := appCover
sc.Covers = append(sc.Covers, coverURL)
coverURL := appCover
sc.Covers = append(sc.Covers, coverURL)
} else {
e.ForEach(`link[as="image"]`, func(id int, e *colly.HTMLElement) {
sc.Covers = append(sc.Covers, e.Request.AbsoluteURL(e.Attr("href")))
Expand Down

0 comments on commit 5a1e79d

Please sign in to comment.