Skip to content

Commit

Permalink
torrent9: add sort option and *.li proxy
Browse files Browse the repository at this point in the history
code used and adapted from cpasbienclone.yml
  • Loading branch information
ilike2burnthing authored Nov 18, 2020
1 parent 610e22e commit e2defbc
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions src/Jackett.Common/Definitions/torrent9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ links:
- https://www.oxtorrent.me/
- https://www.torrent9.gg/
- https://torrent9.to/
- https://torrent9.li/
- https://torrent9.unblockninja.com/

legacylinks:
Expand Down Expand Up @@ -80,6 +81,19 @@ settings:
type: checkbox
label: Replace VOSTFR with ENGLISH
default: false
- name: sort
type: select
label: Sort requested from site (Only works for searches with Keywords)
default: ?trie-date-d
options:
?trie-date-d: created desc
?trie-date-a: created asc
?trie-seeds-d: seeders desc
?trie-seeds-a: seeders asc
?trie-poid-d: size desc
?trie-poid-a: size asc
?trie-nom-d: title desc
?trie-nom-a: title asc
- name: info_131681
type: info
label: About Torrent9 Categories
Expand All @@ -91,9 +105,9 @@ download:

search:
paths:
- path: "{{ if .Keywords }}/search_torrent/{{ .Keywords }}{{ else }}/top_torrent/{{ end }}"
- path: "{{ if .Keywords }}/search_torrent/{{ .Keywords }}{{ .Config.sort }}{{ else }}/top_torrent/{{ end }}"
keywordsfilters:
# if searching for season packs swith S01 to saison 1 #9712
# if searching for season packs with S01 to saison 1 #9712
- name: re_replace
args: ["(?i)(S0)(\\d{1,2})$", "saison $2"]
- name: re_replace
Expand Down Expand Up @@ -174,6 +188,9 @@ search:
args: ["Go", "GB"]
- name: replace
args: ["To", "TB"]
# support for search with keywords on *.li which returns sizes nnnnn.n without unit indicator.
- name: re_replace
args: ["(\\d+)\\.\\d(?!KB|MB|GB|TB)", "$1 MB"]
seeders:
text: 0
seeders:
Expand Down

0 comments on commit e2defbc

Please sign in to comment.