mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
ilcorsaroblu: use infohash
code tidy
This commit is contained in:
@@ -133,7 +133,7 @@ search:
|
|||||||
inputs:
|
inputs:
|
||||||
page: torrents
|
page: torrents
|
||||||
search: "{{ .Keywords }}"
|
search: "{{ .Keywords }}"
|
||||||
category: "{{ if .Categories }}{{ range .Categories }}{{.}};{{end}}{{else}}0{{end}}"
|
category: "{{ if .Categories }}{{ range .Categories }}{{.}};{{end}}{{ else }}0{{ end }}"
|
||||||
# 0 title, 1 title & descr, 2 descr, 3 uploaders, 5 gold, 6 silver, 7 bronze
|
# 0 title, 1 title & descr, 2 descr, 3 uploaders, 5 gold, 6 silver, 7 bronze
|
||||||
options: "{{ if .Config.freeleech }}5{{ else }}0{{ end }}"
|
options: "{{ if .Config.freeleech }}5{{ else }}0{{ end }}"
|
||||||
# 0 all, 1 activeonly, 2 deadonly
|
# 0 all, 1 activeonly, 2 deadonly
|
||||||
@@ -148,6 +148,12 @@ search:
|
|||||||
- name: andmatch
|
- name: andmatch
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
|
category:
|
||||||
|
selector: a[href^="index.php?page=torrents&category="]
|
||||||
|
attribute: href
|
||||||
|
filters:
|
||||||
|
- name: querystring
|
||||||
|
args: category
|
||||||
title:
|
title:
|
||||||
selector: td:nth-child(2) > a
|
selector: td:nth-child(2) > a
|
||||||
filters:
|
filters:
|
||||||
@@ -174,6 +180,9 @@ search:
|
|||||||
args: ["(?i)\\b(?:Puntate\\s*)(\\d+)\\s?(\\d+)", "E0$1-0$2"]
|
args: ["(?i)\\b(?:Puntate\\s*)(\\d+)\\s?(\\d+)", "E0$1-0$2"]
|
||||||
- name: re_replace # rimozioni varie
|
- name: re_replace # rimozioni varie
|
||||||
args: ["(?i)(Serie completa|Completat?a?|in pausa)", ""]
|
args: ["(?i)(Serie completa|Completat?a?|in pausa)", ""]
|
||||||
|
details:
|
||||||
|
selector: td:nth-child(2) > a
|
||||||
|
attribute: href
|
||||||
download:
|
download:
|
||||||
optional: true
|
optional: true
|
||||||
selector: a[href^="download.php?id="]
|
selector: a[href^="download.php?id="]
|
||||||
@@ -186,37 +195,17 @@ search:
|
|||||||
args: http://itorrents.org/torrent/
|
args: http://itorrents.org/torrent/
|
||||||
- name: append
|
- name: append
|
||||||
args: ".torrent"
|
args: ".torrent"
|
||||||
_magnetfilename: # convert title to valid magnet filename
|
infohash:
|
||||||
text: "{{ .Result.title }}"
|
|
||||||
filters:
|
|
||||||
- name: validfilename
|
|
||||||
- name: urlencode
|
|
||||||
magnet: # generate magnet link from download link
|
|
||||||
optional: true
|
optional: true
|
||||||
selector: a[href^="download.php?id="]
|
selector: a[href^="download.php?id="]
|
||||||
attribute: href
|
attribute: href
|
||||||
filters:
|
filters:
|
||||||
- name: querystring
|
- name: querystring
|
||||||
args: id
|
args: id
|
||||||
- name: prepend
|
|
||||||
args: "magnet:?xt=urn:btih:"
|
|
||||||
- name: append
|
|
||||||
args: "&dn={{ .Result._magnetfilename }}.torrent"
|
|
||||||
- name: append
|
|
||||||
args: "&tr=udp://tracker.openbittorrent.com:80/announce&tr=udp://tracker.opentrackr.org:1337/announce"
|
|
||||||
magnet:
|
magnet:
|
||||||
optional: true
|
optional: true
|
||||||
selector: a[href^="magnet:?xt="]
|
selector: a[href^="magnet:?xt="]
|
||||||
attribute: href
|
attribute: href
|
||||||
category:
|
|
||||||
selector: a[href^="index.php?page=torrents&category="]
|
|
||||||
attribute: href
|
|
||||||
filters:
|
|
||||||
- name: querystring
|
|
||||||
args: category
|
|
||||||
details:
|
|
||||||
selector: td:nth-child(2) > a
|
|
||||||
attribute: href
|
|
||||||
size:
|
size:
|
||||||
selector: td:nth-last-child(2)
|
selector: td:nth-last-child(2)
|
||||||
date:
|
date:
|
||||||
|
Reference in New Issue
Block a user