-
-
Notifications
You must be signed in to change notification settings - Fork 429
/
ThePornDBJAV.yml
177 lines (172 loc) · 4.68 KB
/
ThePornDBJAV.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
name: ThePornDB for JAV (NEEDS EDITING)
sceneByURL:
- action: scrapeJson
url:
- theporndb.net/jav/
queryURL: "{url}"
queryURLReplace: &redirectToAPI
url:
- regex: ^(.+theporndb.net)/
with: https://api.theporndb.net/
scraper: sceneScraper
sceneByName:
action: scrapeJson
queryURL: https://api.theporndb.net/jav?parse={}&per_page=10
scraper: sceneSearch
sceneByQueryFragment:
action: scrapeJson
queryURL: "{url}"
scraper: sceneScraper
sceneByFragment:
action: scrapeJson
queryURL: https://api.theporndb.net/jav?parse={filename}&per_page=10
scraper: sceneQueryScraper
queryURLReplace:
filename:
- regex: "[^a-zA-Z\\d\\-._~]" # clean filename so that it can construct a valid url
with: "." # "%20"
- regex: \.+
with: "."
movieByURL:
- action: scrapeJson
url:
- theporndb.net/jav/
scraper: movieScraper
queryURL: "{url}"
queryURLReplace: *redirectToAPI
performerByName:
action: scrapeJson
queryURL: https://api.theporndb.net/performers?q={}&page=1&per_page=10
scraper: performerSearch
performerByURL:
- action: scrapeJson
url:
- https://api.theporndb.net/performers
scraper: performerScraper
jsonScrapers:
performerScraper:
performer:
Name: data.name
Gender: data.extras.gender
URL:
selector: data.slug
postProcess:
- replace:
- regex: ^
with: https://theporndb.net/performers/
Twitter: data.extras.links.Twitter
Instagram: data.extras.links.Instagram
Birthdate: data.birthday
DeathDate: data.deathday
Ethnicity: data.extras.ethnicity
Country: data.extras.birthplace_code
HairColor: data.extras.hair_colour
EyeColor: data.extras.eye_colour
Height:
selector: data.extras.height
postProcess:
- replace:
- regex: \D
with:
Weight:
selector: data.extras.weight
postProcess:
- replace:
- regex: \D
with:
Measurements: data.extras.measurements
FakeTits: data.extras.fake_boobs
# CareerLength
Tattoos: data.extras.tattoos
Piercings: data.extras.piercings
Aliases: data.aliases
# Tags (see Tag fields)
Image: data.image
Details: data.bio
performerSearch:
performer:
Name: data.#.name
URL:
selector: data.#.id
postProcess:
- replace:
- regex: ^
with: https://api.theporndb.net/performers/
sceneSearch:
scene:
Title:
# Prevent having duplicated title so it don't get ignored by stash
selector: data.#.[title,_id]
postProcess:
- replace:
- regex: \[|\"
with: ""
- regex: \,
with: " ["
Date: data.#.date
URL:
selector: data.#.id
postProcess:
- replace:
- regex: ^
with: "https://api.theporndb.net/jav/"
Image: data.#.background.full
Details: data.#.description
sceneScraper:
common:
$data: data
$performers: data.performers
scene: &scene
Title:
selector: $data.external_id
postProcess:
- javascript: return value.toUpperCase()
Details: $data.description
Director: $data.director.name
Date: $data.date
Code:
selector: $data.external_id
postProcess:
- javascript: return value.toUpperCase()
URL: $data.url
Image: $data.background.full
Performers:
Name: $performers.#.parent.name
URL:
selector: $performers.#.parent.id
postProcess:
- replace:
- regex: ^
with: "https://theporndb.net/performers/"
Studio:
Name: $data.site.name
Tags:
Name: $data.tags.#.name
sceneQueryScraper:
common:
$data: data.0
$performers: data.0.performers
scene: *scene
movieScraper:
movie:
Name:
selector: $data.external_id
postProcess:
- javascript: return value.toUpperCase()
Studio:
Name: data.site.name
FrontImage: data.background.full
Synopsis: data.description
Date: data.date
Duration: data.duration
Director: data.director.name
driver:
headers:
- Key: User-Agent
Value: stashjson/1.0.0
- Key: Authorization
# Generate an API key at https://theporndb.net/user/api-tokens
# and replace YOUR_API_KEY_HERE with the generated key
Value: Bearer YOUR_API_KEY_HERE
# ^^^^^^-- This part needs to stay the same
# Last Updated January 04, 2024