Skip to content

Commit

Permalink
fix: missing aggregator logos (xbapps#1631)
Browse files Browse the repository at this point in the history
POVR & VRPORN missing "option" to use default logo when user doesn't supply one (leaving blank entry in avatar_url)
  • Loading branch information
theRealKLH authored Feb 12, 2024
1 parent f0e19e1 commit 75c91cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/scrape/povr.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ func addPOVRScraper(id string, name string, company string, avatarURL string, cu
} else {
suffixedName += " (POVR)"
}
if avatarURL == "" {
avatarURL = "https://images.povr.com/img/povr/android-icon-192x192.png"
}

if masterSiteId == "" {
registerScraper(id, suffixedName, avatarURL, "povr.com", func(wg *sync.WaitGroup, updateSite bool, knownScenes []string, out chan<- models.ScrapedScene, singleSceneURL string, singeScrapeAdditionalInfo string, limitScraping bool) error {
return POVR(wg, updateSite, knownScenes, out, singleSceneURL, id, siteNameSuffix, company, siteURL, singeScrapeAdditionalInfo, limitScraping, "")
Expand Down
4 changes: 4 additions & 0 deletions pkg/scrape/vrporn.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ func addVRPornScraper(id string, name string, company string, avatarURL string,
} else {
suffixedName += " (VRPorn)"
}
if avatarURL == "" {
avatarURL = "https://vrporn.com/assets/favicon.png"
}

if masterSiteId == "" {
registerScraper(id, suffixedName, avatarURL, "vrporn.com", func(wg *sync.WaitGroup, updateSite bool, knownScenes []string, out chan<- models.ScrapedScene, singleSceneURL string, singeScrapeAdditionalInfo string, limitScraping bool) error {
return VRPorn(wg, updateSite, knownScenes, out, singleSceneURL, id, siteNameSuffix, company, siteURL, singeScrapeAdditionalInfo, limitScraping, "")
Expand Down

0 comments on commit 75c91cd

Please sign in to comment.