From 1b5e352c12c2f521ee65126bb6d7ba4fc5349d66 Mon Sep 17 00:00:00 2001 From: theRealKLH <65736720+theRealKLH@users.noreply.github.com> Date: Sun, 11 Feb 2024 18:19:20 -0500 Subject: [PATCH] fix: missing aggregator logos POVR & VRPORN missing "option" to use default logo when user doesn't supply one (leaving blank entry in avatar_url) --- pkg/scrape/povr.go | 4 ++++ pkg/scrape/vrporn.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/pkg/scrape/povr.go b/pkg/scrape/povr.go index a02870b58..1d916cd84 100644 --- a/pkg/scrape/povr.go +++ b/pkg/scrape/povr.go @@ -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, "") diff --git a/pkg/scrape/vrporn.go b/pkg/scrape/vrporn.go index 3cde9c9c1..2de6631d8 100644 --- a/pkg/scrape/vrporn.go +++ b/pkg/scrape/vrporn.go @@ -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, "")