diff --git a/src/Jackett.Common/Definitions/blutopia-api.yml b/src/Jackett.Common/Definitions/blutopia-api.yml index 24a137b5c..c219ed2cc 100644 --- a/src/Jackett.Common/Definitions/blutopia-api.yml +++ b/src/Jackett.Common/Definitions/blutopia-api.yml @@ -53,24 +53,12 @@ settings: search: paths: # https://hdinnovations.github.io/UNIT3D-Community-Edition-Docs/api_endpoints.html - - path: /api/torrents/filter + # https://github.com/HDInnovations/UNIT3D-Community-Edition/blob/master/app/Http/Controllers/API/TorrentController.php + - path: "/api/torrents/filter?api_token={{ .Config.apikey }}&name={{ if .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}{{ if .Query.TMDBID }}&tmdbId={{ .Query.TMDBID }}{{ else }}{{ end }}{{ if .Query.IMDBIDShort }}&imdbId={{ .Query.IMDBIDShort }}{{ else }}{{ end }}{{ if .Query.TVDBID }}&tvdbId={{ .Query.TVDBID }}{{ else }}{{ end }}&sortField={{ .Config.sort }}&sortDirection={{ .Config.type }}&perPage=100&page=1{{ range .Categories }}&categories[]={{.}}{{end}}{{ if .Config.freeleech }}&free=1{{ else }}{{ end }}" response: type: json attribute: attributes - inputs: - # https://github.com/HDInnovations/UNIT3D-Community-Edition/blob/master/app/Http/Controllers/API/TorrentController.php - api_token: "{{ .Config.apikey }}" - name: "{{ if .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" - tmdb: "{{ .Query.TMDBID }}" - imdb: "{{ .Query.IMDBIDShort }}" - tvdb: "{{ .Query.TVDBID }}" - sortField: "{{ .Config.sort }}" - sortDirection: "{{ .Config.type }}" - perPage: 100 - page: 1 - $raw: "{{ range .Categories }}categories[]={{.}}&{{end}}{{ if .Config.freeleech }}free=1{{ else }}{{ end }}" - rows: selector: data count: