ilcorsaronero: use infohash

code tidy
add date TZ
This commit is contained in:
Garfield69
2020-11-04 14:27:46 +13:00
parent d28ca2144f
commit c2ec42b84d

View File

@@ -75,6 +75,12 @@ search:
- name: andmatch
fields:
category:
selector: td:nth-child(1) a
attribute: href
filters:
- name: split
args: ["/", -1]
title:
selector: td:nth-child(2) a.tab
attribute: href
@@ -105,12 +111,6 @@ search:
args: ["(?i)\\b(?:Puntate\\s*)(\\d+)\\s?(\\d+)", "E0$1-0$2"]
- name: re_replace # rimozioni varie
args: ["(?i)(Serie completa|Completat?a?|in pausa)", ""]
category:
selector: td:nth-child(1) a
attribute: href
filters:
- name: split
args: ["/", -1]
description:
selector: td:nth-child(1) a
attribute: href
@@ -132,21 +132,18 @@ search:
args: ".torrent"
download:
text: "{{ if .Config.itorrents-links }}{{ .Result.download-itorrents }}{{ else }}{{ end }}"
magnet:
infohash:
selector: input.downarrow
attribute: value
filters:
- name: prepend
args: "magnet:?xt=urn:btih:"
- name: append
args: "&dn={{ .Result.title }}.torrent&tr=udp://tracker.coppersurfer.tk:6969&tr=udp://tracker.leechers-paradise.org:6969&tr=udp://tracker.opentrackr.org:1337"
size:
selector: td:nth-child(3) font
date:
selector: td:nth-child(5) font
filters:
- name: append
args: " +01:00" # CET
- name: dateparse
args: "02.01.06"
args: "02.01.06 -07:00"
seeders:
selector: td:nth-child(6) font
filters: