forked from stashapp/CommunityScrapers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ThePornDBMovies.yml
111 lines (106 loc) · 2.83 KB
/
ThePornDBMovies.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
name: ThePornDB for Movies
sceneByURL:
- action: scrapeJson
url:
- theporndb.net/movies/
queryURL: "{url}"
queryURLReplace: &redirectToAPI
url:
- regex: ^(.+theporndb.net)/
with: https://api.theporndb.net/
scraper: sceneScraper
sceneByName:
action: scrapeJson
queryURL: https://api.theporndb.net/movies?parse={}&per_page=10
scraper: sceneSearch
sceneByQueryFragment:
action: scrapeJson
queryURL: "{url}"
scraper: sceneScraper
sceneByFragment:
action: scrapeJson
queryURL: https://api.theporndb.net/movies?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/movies/
scraper: movieScraper
queryURL: "{url}"
queryURLReplace: *redirectToAPI
jsonScrapers:
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/movies/"
Image: data.#.background.full
Details: data.#.description
sceneScraper:
common:
$data: data
$performers: data.performers
scene: &scene
Title: $data.title
Details: $data.description
Director: $data.director.name
Date: $data.date
Code: $data.external_id
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: data.title
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