torrentz2k: new layout and domain resolves #8213

This commit is contained in:
Garfield69
2020-09-14 08:07:54 +12:00
parent c78998c8fd
commit 8e124d7af8

View File

@@ -6,21 +6,23 @@ language: en-us
type: public type: public
encoding: UTF-8 encoding: UTF-8
links: links:
- https://torrentz2k.pw/
legacylinks:
- https://torrentz2k.xyz/ - https://torrentz2k.xyz/
caps: caps:
categories: categories:
book: Books movies: Movies
film: Movies games: Console
gamepad: Console xxx: XXX
list: Other
male: XXX
music: Audio music: Audio
sellsy: Audio/Lossless anime: TV/Anime
play-circle: TV tv: TV
smile-o: TV/Anime applications: PC
television: TV apps: PC
wrench: PC windows: PC/0day
android: PC/Phone-Android
other: Other
modes: modes:
search: [q] search: [q]
@@ -31,7 +33,6 @@ caps:
settings: [] settings: []
search: search:
# https://torrentz2k.xyz/search/
paths: paths:
- path: search/ - path: search/
method: post method: post
@@ -56,26 +57,34 @@ search:
fields: fields:
category: category:
selector: i selector: a[href^="/category/"]
attribute: class attribute: href
filters: filters:
- name: append
args: " list"
# extract the second class
- name: split - name: split
args: [" ", 1] args: ["/", 2]
# remove fa- prefix
- name: replace
args: ["fa-", ""]
title: title:
selector: button selector: span.btntitle
attribute: title attribute: title
details: details:
# details page is only accessible via form and post which Cardigann does not support. selector: td > a
text: /
download:
selector: a[href^="magnet:?xt="]
attribute: href attribute: href
_magnetfilename: # convert title to valid magnet filename
text: "{{ .Result.title }}"
filters:
- name: validfilename
- name: urlencode
# the magnet is burried in a tertiary page, so we build our own instead
magnet: # generate magnet link from details page link
optional: true
selector: td > a
attribute: href
filters:
- name: replace
args: ["/", ""]
- name: prepend
args: "magnet:?xt=urn:btih:"
- name: append
args: "&dn={{ .Result._magnetfilename }}.torrent&tr=udp://tracker.coppersurfer.tk:6969&tr=udp://tracker.leechers-paradise.org:6969&tr=udp://tracker.opentrackr.org:1337"
date: date:
selector: td:nth-child(5) selector: td:nth-child(5)
filters: filters: