oxtorrent: fix .torrent dl resolves #8064

add info about proxies only supporting magnet DL
also correct year title move (single word titles would break)
This commit is contained in:
Garfield69
2020-04-08 09:17:20 +12:00
parent 4f42af2a97
commit e511191544

View File

@@ -40,8 +40,12 @@
label: Download link label: Download link
default: "magnet:?xt=" default: "magnet:?xt="
options: options:
"/get_torrents/" : ".torrent" "/telecharger/" : ".torrent"
"magnet:?xt=": "magnet" "magnet:?xt=": "magnet"
- name: info_downloadlink
type: info
label: "About the Download Link"
default: "Note that only <b>www.oxtorrent.com</b> supports the use of the <b>.torrent</b> download link.<br />All sites support <b>magnet</b> links."
download: download:
selector: a[href*="{{ .Config.downloadlink }}"] selector: a[href*="{{ .Config.downloadlink }}"]
@@ -52,7 +56,9 @@
- path: "{{ if .Keywords }}recherche/{{ .Keywords }}{{else}}{{end}}" - path: "{{ if .Keywords }}recherche/{{ .Keywords }}{{else}}{{end}}"
rows: rows:
selector: div.listing-torrent > table > tbody > tr:has(a[href^="torrent/"]), div.listing-torrent > table > tbody > tr:has(a[href^="/torrent/"]) selector: table.table-hover > tbody > tr:has(a[href*="torrent/"])
filters:
- name: andmatch
fields: fields:
category: category:
@@ -69,9 +75,9 @@
site_date: site_date:
selector: td:nth-child(1) a selector: td:nth-child(1) a
filters: filters:
# date is at the end of the title, so we get it and name it site_date # year is at the end of the title, so we get it and name it site_date
- name: regexp - name: regexp
args: "(\\w+)$" args: "(\\d{4})$"
title: title:
selector: td:nth-child(1) a selector: td:nth-child(1) a
filters: filters:
@@ -86,7 +92,7 @@
args: ["VOSTFR", "{{ .Result.site_date }} VOSTFR"] args: ["VOSTFR", "{{ .Result.site_date }} VOSTFR"]
# and we delete it at the end # and we delete it at the end
- name: re_replace - name: re_replace
args: ["(\\w+)$", ""] args: ["(\\d{4})$", ""]
details: details:
selector: td:nth-child(1) a selector: td:nth-child(1) a
attribute: href attribute: href