xwtorrents: add optional seedbox dl resolves #5071

This commit is contained in:
Garfield69
2019-04-14 16:35:36 +12:00
parent 40b0cdffc3
commit 67ea8db2da

View File

@@ -61,6 +61,19 @@
modes: modes:
search: [q] search: [q]
tv-search: [q, season, ep]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: seedbox
type: checkbox
label: "Use SeedBox Download Link"
default: false
login: login:
path: login.php path: login.php
@@ -103,9 +116,14 @@
title: title:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: title attribute: title
download: download1:
selector: a[href^="download.php"] selector: a[href^="download.php"]
attribute: href attribute: href
download2:
selector: a[href^="download2.php"]
attribute: href
download:
text: "{{if .Config.seedbox}}{{ .Result.download2 }}{{else}}{{ .Result.download1 }}{{end}}"
details: details:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href