From 4bdef1b3902e286a644b365e5b718102f5a911d9 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 22 Feb 2024 08:43:09 +1300 Subject: [PATCH] Revert "hdolimpo-api: update for UNIT3D 7.x" This reverts commit ce2c72c2589878e2a0b3a12aed04313ea6598a44. The site is not running unit3d 7.x.x as the api aoutput still indicates a 6.x.x layout --- .../Definitions/hdolimpo-api.yml | 26 +++++++------------ 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/src/Jackett.Common/Definitions/hdolimpo-api.yml b/src/Jackett.Common/Definitions/hdolimpo-api.yml index e067ec389..20cd7a2d4 100644 --- a/src/Jackett.Common/Definitions/hdolimpo-api.yml +++ b/src/Jackett.Common/Definitions/hdolimpo-api.yml @@ -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 @@ -73,7 +73,7 @@ search: Authorization: ["Bearer {{ .Config.apikey }}"] inputs: - # if we have an id based search, add Season and Episode as query in name for UNIT3D < v6. Else pass S/E Params for UNIT3D >= v6 + # if we have an id based search, add Season and Episode as query in name for UNIT3D < v6. Else pass S/E Params for UNIT3D >= v6 $raw: "{{ range .Categories }}&categories[]={{.}}{{end}}" name: "{{ .Keywords }}" seasonNumber: "{{ .Query.Season }}" @@ -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