From f08db1adc2204f2537b621d390d5540c9d491872 Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Wed, 17 Nov 2021 05:01:44 +0000 Subject: [PATCH] assorted: unit3d api update (#12576) --- src/Jackett.Common/Definitions/aither-api.yml | 16 ++--------- .../Definitions/animeworld-api.yml | 16 ++--------- .../Definitions/brsociety-api.yml | 16 ++--------- .../Definitions/datascene-api.yml | 16 ++--------- .../Definitions/desitorrents-api.yml | 16 ++--------- .../Definitions/reelflix-api.yml | 28 +++---------------- src/Jackett.Common/Definitions/reelflix.yml | 8 ++---- .../Definitions/shareisland-api.yml | 16 ++--------- .../Definitions/skipthecommercials-api.yml | 16 ++--------- .../Definitions/tellytorrent-api.yml | 16 ++--------- 10 files changed, 22 insertions(+), 142 deletions(-) diff --git a/src/Jackett.Common/Definitions/aither-api.yml b/src/Jackett.Common/Definitions/aither-api.yml index 647256506..69c267ba4 100644 --- a/src/Jackett.Common/Definitions/aither-api.yml +++ b/src/Jackett.Common/Definitions/aither-api.yml @@ -61,24 +61,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: diff --git a/src/Jackett.Common/Definitions/animeworld-api.yml b/src/Jackett.Common/Definitions/animeworld-api.yml index 9143b1bf6..47d134eb1 100644 --- a/src/Jackett.Common/Definitions/animeworld-api.yml +++ b/src/Jackett.Common/Definitions/animeworld-api.yml @@ -63,24 +63,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: diff --git a/src/Jackett.Common/Definitions/brsociety-api.yml b/src/Jackett.Common/Definitions/brsociety-api.yml index e5b2bed5a..d89366ad9 100644 --- a/src/Jackett.Common/Definitions/brsociety-api.yml +++ b/src/Jackett.Common/Definitions/brsociety-api.yml @@ -54,24 +54,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: diff --git a/src/Jackett.Common/Definitions/datascene-api.yml b/src/Jackett.Common/Definitions/datascene-api.yml index b5b20e1ae..ad4675c27 100644 --- a/src/Jackett.Common/Definitions/datascene-api.yml +++ b/src/Jackett.Common/Definitions/datascene-api.yml @@ -62,24 +62,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: diff --git a/src/Jackett.Common/Definitions/desitorrents-api.yml b/src/Jackett.Common/Definitions/desitorrents-api.yml index 277e8cae0..f3c060644 100644 --- a/src/Jackett.Common/Definitions/desitorrents-api.yml +++ b/src/Jackett.Common/Definitions/desitorrents-api.yml @@ -54,24 +54,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 }}" - keywordsfilters: - name: re_replace args: [^$, "%"] diff --git a/src/Jackett.Common/Definitions/reelflix-api.yml b/src/Jackett.Common/Definitions/reelflix-api.yml index eb2b01b30..9bf58f607 100644 --- a/src/Jackett.Common/Definitions/reelflix-api.yml +++ b/src/Jackett.Common/Definitions/reelflix-api.yml @@ -1,7 +1,7 @@ --- id: reelflix-api -name: ReelFlix (API) -description: "ReelFlix (HD4Free,LegacyHD) is a Private Torrent Tracker for HD MOVIES / TV / GENERAL" +name: ReelFLiX (API) +description: "ReelFLiX (HD4Free,LegacyHD) is a Private Torrent Tracker for HD MOVIES" language: en-US type: private encoding: UTF-8 @@ -14,10 +14,6 @@ caps: # dont forget to update the case block in the search fields category categorymappings: - {id: 1, cat: Movies, desc: "Movies"} - - {id: 2, cat: TV, desc: "TV"} - - {id: 3, cat: Audio, desc: "Music"} - - {id: 4, cat: Books/EBook, desc: "E-Book"} - - {id: 5, cat: TV, desc: "TV Pack"} modes: search: [q] @@ -58,24 +54,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: @@ -86,10 +70,6 @@ search: selector: category case: Movie: 1 - TV: 2 - Music: 3 - E-Book: 4 - TV Pack: 5 title: selector: name details: diff --git a/src/Jackett.Common/Definitions/reelflix.yml b/src/Jackett.Common/Definitions/reelflix.yml index f99d76dbd..4bd2e9af8 100644 --- a/src/Jackett.Common/Definitions/reelflix.yml +++ b/src/Jackett.Common/Definitions/reelflix.yml @@ -1,7 +1,7 @@ --- id: reelflix -name: ReelFlix -description: "ReelFlix (HD4Free,LegacyHD) is a Private Torrent Tracker for HD MOVIES / TV / GENERAL" +name: ReelFLiX +description: "ReelFLiX (HD4Free,LegacyHD) is a Private Torrent Tracker for HD MOVIES" language: en-US type: private encoding: UTF-8 @@ -13,10 +13,6 @@ legacylinks: caps: categorymappings: - {id: 1, cat: Movies, desc: "Movies"} - - {id: 2, cat: TV, desc: "TV"} - - {id: 3, cat: Audio, desc: "Music"} - - {id: 4, cat: Books/EBook, desc: "E-Book"} - - {id: 5, cat: TV, desc: "TV Pack"} modes: search: [q] diff --git a/src/Jackett.Common/Definitions/shareisland-api.yml b/src/Jackett.Common/Definitions/shareisland-api.yml index 3e0dd47d9..c6402794e 100644 --- a/src/Jackett.Common/Definitions/shareisland-api.yml +++ b/src/Jackett.Common/Definitions/shareisland-api.yml @@ -62,24 +62,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 }}" - keywordsfilters: - name: diacritics args: replace diff --git a/src/Jackett.Common/Definitions/skipthecommercials-api.yml b/src/Jackett.Common/Definitions/skipthecommercials-api.yml index f93530214..d78c37c5b 100644 --- a/src/Jackett.Common/Definitions/skipthecommercials-api.yml +++ b/src/Jackett.Common/Definitions/skipthecommercials-api.yml @@ -49,24 +49,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: diff --git a/src/Jackett.Common/Definitions/tellytorrent-api.yml b/src/Jackett.Common/Definitions/tellytorrent-api.yml index dc0dc8b3a..851cfc4b4 100644 --- a/src/Jackett.Common/Definitions/tellytorrent-api.yml +++ b/src/Jackett.Common/Definitions/tellytorrent-api.yml @@ -62,24 +62,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: