From 2aef8bb4afaee66f71fcf821fbaf87a8598f7fa7 Mon Sep 17 00:00:00 2001 From: crwxaj <52156245+crwxaj@users.noreply.github.com> Date: Tue, 2 Apr 2024 17:11:01 +0200 Subject: [PATCH] scraper: changed URL for ThePornDB (#1686) Co-authored-by: crwxaj --- pkg/scrape/tpdb.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/scrape/tpdb.go b/pkg/scrape/tpdb.go index c48f318fa..ad01ef3aa 100644 --- a/pkg/scrape/tpdb.go +++ b/pkg/scrape/tpdb.go @@ -16,10 +16,10 @@ func ScrapeTPDB(knownScenes []string, out *[]models.ScrapedScene, apiToken strin sc.SceneType = "VR" // We accept 2 scene URL syntaxes: - // https://metadataapi.net/scenes/scene-title-1 + // https://theporndb.net/scenes/scene-title-1 // or - // https://api.metadataapi.net/scenes/scene-title-1 - re := regexp.MustCompile("metadataapi.net/scenes/(.+)") + // https://api.theporndb.net/scenes/scene-title-1 + re := regexp.MustCompile("theporndb.net/scenes/(.+)") subMatches := re.FindStringSubmatch(sceneUrl) if subMatches == nil || len(subMatches) != 2 { return errors.New("TPDB Url is malformed") @@ -27,7 +27,7 @@ func ScrapeTPDB(knownScenes []string, out *[]models.ScrapedScene, apiToken strin r, _ := resty.New().R(). SetAuthToken(apiToken). - Get(fmt.Sprintf("https://api.metadataapi.net/scenes/%v", subMatches[1])) + Get(fmt.Sprintf("https://api.theporndb.net/scenes/%v", subMatches[1])) tpdbMetadata := r.String()