Torrentz2: Add support for itorrents download links

This commit is contained in:
kaso17
2017-02-14 09:57:19 +01:00
parent d499f6cde6
commit c923055bbf

View File

@@ -36,7 +36,10 @@
tv-search: [q, season, ep] tv-search: [q, season, ep]
movie-search: [q] movie-search: [q]
settings: [] settings:
- name: itorrents-links
type: checkbox
label: Add download links via itorrents.org
search: search:
path: searchA path: searchA
@@ -52,7 +55,20 @@
details: details:
selector: dt a selector: dt a
attribute: href attribute: href
download-itorrents:
selector: dt a
attribute: href
filters:
- name: regexp
args: "/(\\w+)"
- name: toupper
- name: prepend
args: http://itorrents.org/torrent/
- name: append
args: ".torrent"
download: download:
text: "{{if .Config.itorrents-links}}{{ .Result.download-itorrents }}{{else}}{{end}}"
magnet:
selector: dt a selector: dt a
attribute: href attribute: href
filters: filters: