h-p2p: -> 8.1.3

This commit is contained in:
Garfield69 2024-05-03 13:28:20 +12:00
parent 5659a595f5
commit 7526c06680
1 changed files with 37 additions and 24 deletions

View File

@ -11,21 +11,16 @@ links:
caps:
categorymappings:
- {id: 6, cat: XXX/WEB-DL, desc: "OnlyFans"}
- {id: 8, cat: XXX/WEB-DL, desc: "Privacy"}
- {id: 9, cat: XXX/WEB-DL, desc: "Other"}
- {id: 11, cat: XXX/WEB-DL, desc: "JAV"}
- {id: 12, cat: XXX/WEB-DL, desc: "Hentai"}
- {id: 13, cat: XXX/WEB-DL, desc: "Straight"}
- {id: 14, cat: XXX/WEB-DL, desc: "Lesbian"}
- {id: 15, cat: XXX/WEB-DL, desc: "Gay"}
- {id: 16, cat: XXX/WEB-DL, desc: "Bisexual"}
- {id: 17, cat: XXX/WEB-DL, desc: "MILF"}
- {id: 18, cat: XXX/WEB-DL, desc: "Anal"}
- {id: 19, cat: XXX/WEB-DL, desc: "BDSM"}
- {id: 20, cat: XXX/WEB-DL, desc: "Gangbang"}
- {id: 21, cat: XXX/WEB-DL, desc: "Voyeurism"}
- {id: 22, cat: XXX/WEB-DL, desc: "JustForFans"}
- {id: 23, cat: XXX/WEB-DL, desc: "Fansly"}
- {id: 8, cat: XXX/WEB-DL, desc: "Privacy"}
- {id: 22, cat: XXX/WEB-DL, desc: "JustForFans"}
- {id: 24, cat: XXX/WEB-DL, desc: "ManyVids"}
- {id: 25, cat: XXX/WEB-DL, desc: "Clips4Sale"}
- {id: 12, cat: XXX/WEB-DL, desc: "Hentai"}
- {id: 11, cat: XXX/WEB-DL, desc: "JAV"}
- {id: 14, cat: XXX/WEB-DL, desc: "Paid Site"}
- {id: 26, cat: XXX/WEB-DL, desc: "HomeMade"}
- {id: 9, cat: XXX/WEB-DL, desc: "Other"}
modes:
search: [q]
@ -39,11 +34,15 @@ settings:
- name: info_key
type: info
label: About your API key
default: "Find or Generate a new API Token by accessing your <a href=\"https://h-p2p.cam/\" target=\"_blank\">H-P2P</a> account <i>My Security</i> page and clicking on the <b>API Token</b> tab."
default: "Find or Generate a new API Token by accessing your <a href=\"https://h-p2p.cam/\" target=\"_blank\">H-P2P</a> account <i>My Settings</i> page and clicking on the <b>API Key</b> tab."
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
- name: single_file_release_use_filename
type: checkbox
label: Use filename as title for single file releases
default: true
- name: sort
type: select
label: Sort requested from site
@ -83,7 +82,7 @@ search:
inputs:
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
free: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
"free[]": "{{ if .Config.freeleech }}100{{ else }}{{ end }}"
sortField: "{{ .Config.sort }}"
sortDirection: "{{ .Config.type }}"
perPage: 100
@ -99,8 +98,15 @@ search:
fields:
category:
selector: category_id
title:
title_optional:
selector: name
title_filename:
selector: "files[0].name"
optional: true
files:
selector: num_file
title:
text: "{{ if and (.Config.single_file_release_use_filename) (eq .Result.files \"1\") (.Result.title_filename) }}{{ .Result.title_filename }}{{ else }}{{ .Result.title_optional }}{{ end }}"
details:
selector: details_link
download:
@ -108,12 +114,19 @@ search:
infohash:
selector: info_hash
poster:
selector: poster
selector: meta.poster
filters:
- name: replace
args: ["https://via.placeholder.com/90x135", ""]
files:
selector: num_file
genre:
selector: meta.genres
filters:
- name: re_replace
args: ["(?i)(Science Fiction)", "Science_Fiction"]
- name: replace
args: [" & ", "_&_"]
description:
text: "{{ .Result.genre }}"
seeders:
selector: seeders
leechers:
@ -141,14 +154,14 @@ search:
100%: 0 # freeleech
"*": 0 # catch errors
uploadvolumefactor:
# api returns 0=false, 1=true
# api returns False, True
selector: double_upload
case:
0: 1 # normal
1: 2 # double
False: 1 # normal
True: 2 # double
minimumratio:
text: 1.0
minimumseedtime:
# 7 days (as seconds = 7 x 24 x 60 x 60)
text: 604800
# json UNIT3D 6.3.0
# json UNIT3D 8.1.3 (custom)