Skip to content

Commit

Permalink
mononokebt: add vostfr checkbox for add to titles (#10816)
Browse files Browse the repository at this point in the history
  • Loading branch information
xfouloux committed Jan 15, 2021
1 parent b28def0 commit fd35241
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/Jackett.Common/Definitions/mononokebt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ caps:
search: [q]
tv-search: [q, season, ep]

settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: vostfr
type: checkbox
label: Add VOSTFR to titles
default: false

login:
path: takelogin.php
method: post
Expand All @@ -40,8 +52,12 @@ search:
fields:
category:
text: 1
title:
title_normal:
selector: a[href^="details.php?id="]
title_vostfr:
text: "{{ .Result.title_normal }} VOSTFR"
title:
text: "{{ if .Config.vostfr }}{{ .Result.title_vostfr }}{{ else }}{{ .Result.title_normal }}{{ end }}"
details:
selector: a[href^="details.php?id="]
attribute: href
Expand Down

0 comments on commit fd35241

Please sign in to comment.