Skip to content

Commit

Permalink
unit3d: move api key auth in headers (#14429)
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Jun 6, 2023
1 parent c6180f6 commit e9f7e4d
Show file tree
Hide file tree
Showing 34 changed files with 99 additions and 102 deletions.
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/aither-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ settings:
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
Expand All @@ -75,9 +73,11 @@ search:
response:
type: json

headers:
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
api_token: "{{ .Config.apikey }}"
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
seasonNumber: "{{ .Query.Season }}"
Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/animetracker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ settings:
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
Expand All @@ -77,9 +75,11 @@ search:
response:
type: json

headers:
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
api_token: "{{ .Config.apikey }}"
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
seasonNumber: "{{ .Query.Season }}"
Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/animeworld-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ settings:
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
Expand All @@ -80,9 +78,11 @@ search:
response:
type: json

headers:
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
api_token: "{{ .Config.apikey }}"
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
seasonNumber: "{{ .Query.Season }}"
Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/blutopia-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ settings:
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
Expand All @@ -69,9 +67,11 @@ search:
response:
type: json

headers:
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
api_token: "{{ .Config.apikey }}"
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
seasonNumber: "{{ .Query.Season }}"
Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/brsociety-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ settings:
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
Expand All @@ -70,8 +68,10 @@ search:
response:
type: json

headers:
Authorization: ["Bearer {{ .Config.apikey }}"]

inputs:
api_token: "{{ .Config.apikey }}"
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
"free[]": "{{ if .Config.freeleech }}100{{ else }}{{ end }}"
Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/danishbytes-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ settings:
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
Expand All @@ -81,8 +79,10 @@ search:
response:
type: json

headers:
Authorization: ["Bearer {{ .Config.apikey }}"]

inputs:
api_token: "{{ .Config.apikey }}"
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
search: "{{ .Keywords }}"
imdb: "{{ .Query.IMDBIDShort }}"
Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/datascene-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ settings:
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
Expand All @@ -76,9 +74,11 @@ search:
response:
type: json

headers:
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
api_token: "{{ .Config.apikey }}"
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
seasonNumber: "{{ .Query.Season }}"
Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/desitorrents-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ settings:
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
Expand All @@ -69,9 +67,11 @@ search:
response:
type: json

headers:
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
api_token: "{{ .Config.apikey }}"
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
seasonNumber: "{{ .Query.Season }}"
Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/generationfree-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ settings:
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
Expand All @@ -99,9 +97,11 @@ search:
response:
type: json

headers:
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
api_token: "{{ .Config.apikey }}"
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
seasonNumber: "{{ .Query.Season }}"
Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/hawke-uno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ settings:
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
Expand All @@ -65,8 +63,10 @@ search:
response:
type: json

headers:
Authorization: ["Bearer {{ .Config.apikey }}"]

inputs:
api_token: "{{ .Config.apikey }}"
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
imdbId: "{{ .Query.IMDBIDShort }}"
Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/hd-unit3d-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ settings:
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
Expand All @@ -68,9 +66,11 @@ search:
response:
type: json

headers:
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
api_token: "{{ .Config.apikey }}"
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
seasonNumber: "{{ .Query.Season }}"
Expand Down
3 changes: 0 additions & 3 deletions src/Jackett.Common/Definitions/hdolimpo-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ settings:
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
Expand All @@ -73,7 +71,6 @@ search:

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
api_token: "{{ .Config.apikey }}"
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
seasonNumber: "{{ .Query.Season }}"
Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/itatorrents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ settings:
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
Expand All @@ -74,9 +72,11 @@ search:
response:
type: json

headers:
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
api_token: "{{ .Config.apikey }}"
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
seasonNumber: "{{ .Query.Season }}"
Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/jme-reunit3d-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ settings:
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
Expand All @@ -76,9 +74,11 @@ search:
response:
type: json

headers:
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
api_token: "{{ .Config.apikey }}"
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
seasonNumber: "{{ .Query.Season }}"
Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/lat-team-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ settings:
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
Expand All @@ -80,9 +78,11 @@ search:
response:
type: json

headers:
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
api_token: "{{ .Config.apikey }}"
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
seasonNumber: "{{ .Query.Season }}"
Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/locadora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ settings:
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
Expand All @@ -70,9 +68,11 @@ search:
response:
type: json

headers:
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
api_token: "{{ .Config.apikey }}"
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
seasonNumber: "{{ .Query.Season }}"
Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/lst.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ settings:
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
Expand All @@ -74,9 +72,11 @@ search:
response:
type: json

headers:
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
api_token: "{{ .Config.apikey }}"
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
seasonNumber: "{{ .Query.Season }}"
Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/monikadesign-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ settings:
login:
path: /api/torrents
method: get
inputs:
api_token: "{{ .Config.apikey }}"
error:
- selector: a[href*="/login"]
message:
Expand All @@ -73,9 +71,11 @@ search:
response:
type: json

headers:
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
api_token: "{{ .Config.apikey }}"
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
seasonNumber: "{{ .Query.Season }}"
Expand Down

0 comments on commit e9f7e4d

Please sign in to comment.