torrentland: fix parsing errors and remove prefix tags (#11913)

This commit is contained in:
Diego Heras 2021-06-13 21:46:01 +02:00 committed by GitHub
parent 94a1381572
commit 131c7fea94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -104,7 +104,8 @@ search:
args: ["(?i)\\bS(\\d+)", "T$1"]
rows:
selector: table > tbody > tr
# pre-release/vip torrents don't have download link
selector: table > tbody > tr:has(a[href*="/download/"])
fields:
category:
@ -124,6 +125,8 @@ search:
selector: a[href*="/torrents/"]:contains("VOSE")
optional: true
filters:
- name: re_replace
args: ["^ *\\[[^\\]]*\\] *", ""] # Remove prefix tags
- name: re_replace
args: ["(?i)\\bT(\\d+)", "S$1"]
- name: re_replace
@ -134,6 +137,8 @@ search:
selector: a[href*="/torrents/"]:not(:contains("VOSE"))
optional: true
filters:
- name: re_replace
args: ["^ *\\[[^\\]]*\\] *", ""] # Remove prefix tags
- name: re_replace
args: ["(?i)\\bT(\\d+)", "S$1"]
- name: re_replace