We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentdfc27a4 commit2aef8bbCopy full SHA for 2aef8bb
pkg/scrape/tpdb.go
@@ -16,18 +16,18 @@ func ScrapeTPDB(knownScenes []string, out *[]models.ScrapedScene, apiToken strin
16
sc.SceneType="VR"
17
18
// We accept 2 scene URL syntaxes:
19
-// https://metadataapi.net/scenes/scene-title-1
+// https://theporndb.net/scenes/scene-title-1
20
// or
21
-// https://api.metadataapi.net/scenes/scene-title-1
22
-re:=regexp.MustCompile("metadataapi.net/scenes/(.+)")
+// https://api.theporndb.net/scenes/scene-title-1
+re:=regexp.MustCompile("theporndb.net/scenes/(.+)")
23
subMatches:=re.FindStringSubmatch(sceneUrl)
24
ifsubMatches==nil||len(subMatches)!=2 {
25
returnerrors.New("TPDB Url is malformed")
26
}
27
28
r,_:=resty.New().R().
29
SetAuthToken(apiToken).
30
-Get(fmt.Sprintf("https://api.metadataapi.net/scenes/%v",subMatches[1]))
+Get(fmt.Sprintf("https://api.theporndb.net/scenes/%v",subMatches[1]))
31
32
tpdbMetadata:=r.String()
33