hdolimpo-api: update for UNIT3D 7.x

This commit is contained in:
Bogdan
2024-02-21 16:54:47 +02:00
parent 2cab91b0bb
commit ce2c72c258

View File

@@ -65,7 +65,7 @@ search:
paths: paths:
# https://github.com/HDInnovations/UNIT3D-Community-Edition/wiki/Torrent-API-(UNIT3D-v7.0.0) # https://github.com/HDInnovations/UNIT3D-Community-Edition/wiki/Torrent-API-(UNIT3D-v7.0.0)
# https://github.com/HDInnovations/UNIT3D-Community-Edition/blob/master/app/Http/Controllers/API/TorrentController.php#L349 # https://github.com/HDInnovations/UNIT3D-Community-Edition/blob/master/app/Http/Controllers/API/TorrentController.php#L349
- path: api/torrents/filter - path: "/api/torrents/filter"
response: response:
type: json type: json
@@ -81,18 +81,22 @@ search:
imdbId: "{{ .Query.IMDBIDShort }}" imdbId: "{{ .Query.IMDBIDShort }}"
tmdbId: "{{ .Query.TMDBID }}" tmdbId: "{{ .Query.TMDBID }}"
tvdbId: "{{ .Query.TVDBID }}" tvdbId: "{{ .Query.TVDBID }}"
free: "{{ if .Config.freeleech }}1{{ else }}{{ end }}" "free[]": "{{ if .Config.freeleech }}100{{ else }}{{ end }}"
sortField: "{{ .Config.sort }}" sortField: "{{ .Config.sort }}"
sortDirection: "{{ .Config.type }}" sortDirection: "{{ .Config.type }}"
perPage: 100 perPage: 100
keywordsfilters:
- name: re_replace
args: ["\\.", " "]
rows: rows:
selector: data selector: data
attribute: attributes attribute: attributes
fields: fields:
categorydesc: category:
selector: category selector: category_id
title: title:
selector: name selector: name
filters: filters:
@@ -154,8 +158,10 @@ search:
selector: details_link selector: details_link
download: download:
selector: download_link selector: download_link
infohash:
selector: info_hash
poster: poster:
selector: poster selector: meta.poster
filters: filters:
- name: replace - name: replace
args: ["https://via.placeholder.com/90x135", ""] args: ["https://via.placeholder.com/90x135", ""]
@@ -194,12 +200,12 @@ search:
100%: 0 # freeleech 100%: 0 # freeleech
"*": 0 # catch errors "*": 0 # catch errors
uploadvolumefactor: uploadvolumefactor:
# api returns 0=false, 1=true # api returns False, True
selector: double_upload selector: double_upload
case: case:
0: 1 # normal False: 1 # normal
1: 2 # double True: 2 # double
minimumseedtime: minimumseedtime:
# 4 days (as seconds = 4 x 24 x 60 x 60) # 4 days (as seconds = 4 x 24 x 60 x 60)
text: 345600 text: 345600
# json UNIT3D 6.0.4 # json UNIT3D 7.x.x