1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-10 22:23:20 +00:00

xwtorrents: title can be missing

This commit is contained in:
Garfield69 2024-03-01 06:50:26 +13:00
parent 8d9c7e9b77
commit 06aa284868

View file

@ -143,12 +143,22 @@ search:
filters:
- name: querystring
args: cat
title:
selector: a[href^="details.php?id="]
attribute: title
download_1:
selector: a[href^="download.php"]
attribute: href
title_default:
# title can be missing so we use the &name= from the DL as a standby
text: "{{ .Result.download_1 }}"
filters:
- name: querystring
args: name
- name: replace
args: [".torrent", ""]
title:
selector: a[href^="details.php?id="]
attribute: title
optional: true
default: "{{ .Result.title_default }}"
download_2:
selector: a[href^="download2.php"]
attribute: href