torrent9clone: add proxies

also fix title year move (single word titles would break)
This commit is contained in:
Garfield69
2020-04-08 09:20:51 +12:00
parent ea0325a173
commit fc88e0f547

View File

@@ -8,6 +8,12 @@
followredirect: true followredirect: true
links: links:
- https://www.torrent9.pl/ - https://www.torrent9.pl/
- https://torrent9.black-mirror.xyz/
- https://torrent9.unblocked.casa/
- https://torrent9.proxyportal.fun/
- https://torrent9.uk-unblock.xyz/
- https://torrent9.ind-unblock.xyz/
- https://torrent9.unblockninja.com/
legacylinks: legacylinks:
- https://www.torrents9.pw/ - https://www.torrents9.pw/
@@ -60,15 +66,15 @@
- path: "{{ if .Keywords }}/recherche/{{ .Keywords }}{{else}}/top{{end}}" - path: "{{ if .Keywords }}/recherche/{{ .Keywords }}{{else}}/top{{end}}"
rows: rows:
selector: div.table-responsive > table tbody tr selector: table.table-striped > tbody > tr
fields: fields:
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:
@@ -83,7 +89,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
@@ -100,7 +106,7 @@
seeders: seeders:
text: 0 text: 0
seeders: seeders:
selector: td:nth-child(3) span.seed_ok selector: td:nth-child(3)
optional: true optional: true
leechers: leechers:
text: 0 text: 0