Revert "hdolimpo-api: update for UNIT3D 7.x"

This reverts commit ce2c72c258.
The site is not running unit3d 7.x.x as the api aoutput still indicates a 6.x.x layout
This commit is contained in:
Garfield69 2024-02-22 08:43:09 +13:00
parent d396ffc43f
commit 4bdef1b390
1 changed files with 10 additions and 16 deletions

View File

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