Skip to content

Commit

Permalink
jackett indexers as of 124b45437bdf6a5b5b52d74b81ecc8287d2475a1
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Feb 21, 2024
1 parent 330c5d2 commit e1afe35
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 45 deletions.
38 changes: 16 additions & 22 deletions definitions/v7/hdolimpo-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,32 +66,28 @@ 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

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
# 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
name: "{{ .Keywords }}"
$raw: "{{ if .Query.Season }}&seasonNumber={{ .Query.Season }}{{ else }}{{ end }}{{ if .Query.Ep }}&episodeNumber={{ .Query.Ep }}{{ else }}{{ 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 }}{{ range .Categories }}&categories[]={{.}}{{end}}{{ if .Config.freeleech }}&free[]=100{{ else }}{{ end }}"
$raw: "{{ if .Query.Season }}&seasonNumber={{ .Query.Season }}{{ else }}{{ end }}{{ if .Query.Ep }}&episodeNumber={{ .Query.Ep }}{{ else }}{{ 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 }}{{ range .Categories }}&categories[]={{.}}{{end}}{{ if .Config.freeleech }}&free=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:
Expand Down Expand Up @@ -153,10 +149,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", ""]
Expand Down Expand Up @@ -185,22 +179,22 @@ search:
size:
selector: size
downloadvolumefactor:
# api returns 0%, 25%, 50%, 75%, 100%
# api returns 0, 25, 50, 75, 100
selector: freeleech
case:
0%: 1 # not free
25%: 0.75
50%: 0.5
75%: 0.25
100%: 0 # freeleech
0: 1 # not free
25: 0.75
50: 0.5
75: 0.25
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.x (custom)
4 changes: 2 additions & 2 deletions definitions/v7/rutor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ search:
paths:
# http://rutor.info/search/0/0/010/0/tt10288566 # search title and descr for imdb
# http://rutor.info/search/0/0/100/0/gotham%2004x01 # search title for query
# http://rutor.info/top/ # search keywordless
- path: "{{ if .Query.IMDBID }}search/0/0/010/{{ .Config.sort }}/{{ .Query.IMDBID }}{{ else }}{{ end }}{{ if .Keywords }}search/0/0/100/{{ .Config.sort }}/{{ .Keywords }}/{{ else }}{{ end }}{{ if or .Keywords .Query.IMDBID }}{{ else }}top/{{ end }}"
# http://rutor.info/ # search keywordless
- path: "{{ if .Query.IMDBID }}search/0/0/010/{{ .Config.sort }}/{{ .Query.IMDBID }}{{ else }}{{ end }}{{ if .Keywords }}search/0/0/100/{{ .Config.sort }}/{{ .Keywords }}/{{ else }}{{ end }}{{ if or .Keywords .Query.IMDBID }}{{ else }}/{{ end }}"

rows:
selector: tr:has(td:has(a[href^="magnet:?xt="]))
Expand Down
1 change: 1 addition & 0 deletions definitions/v7/torrent911.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ caps:
- {id: Porno, cat: XXX, desc: "Porno"}
- {id: Spectacles, cat: TV/Other, desc: "Spectacles"}
- {id: Sports, cat: TV/Sport, desc: "Sports"}
- {id: Formations, cat: Other, desc: "Formations"}

modes:
search: [q]
Expand Down
1 change: 1 addition & 0 deletions definitions/v7/torrent9clone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ caps:
- {id: Porno, cat: XXX, desc: "Porno"}
- {id: Spectacles, cat: TV/Other, desc: "Spectacles"}
- {id: Sports, cat: TV/Sport, desc: "Sports"}
- {id: Formations, cat: Other, desc: "Formations"}

modes:
search: [q]
Expand Down
36 changes: 15 additions & 21 deletions definitions/v9/hdolimpo-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,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

Expand All @@ -82,22 +82,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:
Expand Down Expand Up @@ -159,10 +155,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", ""]
Expand Down Expand Up @@ -191,22 +185,22 @@ search:
size:
selector: size
downloadvolumefactor:
# api returns 0%, 25%, 50%, 75%, 100%
# api returns 0, 25, 50, 75, 100
selector: freeleech
case:
0%: 1 # not free
25%: 0.75
50%: 0.5
75%: 0.25
100%: 0 # freeleech
0: 1 # not free
25: 0.75
50: 0.5
75: 0.25
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.x (custom)
1 change: 1 addition & 0 deletions definitions/v9/torrent9clone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ caps:
- {id: Porno, cat: XXX, desc: "Porno"}
- {id: Spectacles, cat: TV/Other, desc: "Spectacles"}
- {id: Sports, cat: TV/Sport, desc: "Sports"}
- {id: Formations, cat: Other, desc: "Formations"}

modes:
search: [q]
Expand Down

0 comments on commit e1afe35

Please sign in to comment.