STT: -> 8.0.2 resolves #15234

This commit is contained in:
Garfield69 2024-04-24 08:09:57 +12:00
parent 5ab1585f54
commit 45bd7ddc1b
1 changed files with 17 additions and 26 deletions

View File

@ -18,12 +18,6 @@ caps:
movie-search: [q, imdbid, tmdbid] movie-search: [q, imdbid, tmdbid]
settings: settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: apikey - name: apikey
type: text type: text
label: APIKey label: APIKey
@ -35,6 +29,10 @@ settings:
type: checkbox type: checkbox
label: Search freeleech only label: Search freeleech only
default: false default: false
- name: single_file_release_use_filename
type: checkbox
label: Use filename as title for single file releases
default: true
- name: sort - name: sort
type: select type: select
label: Sort requested from site label: Sort requested from site
@ -57,22 +55,12 @@ settings:
default: "Inactivity on the SkipTheTrailers web site for more than 90 days will lead to account being disabled." default: "Inactivity on the SkipTheTrailers web site for more than 90 days will lead to account being disabled."
login: login:
path: login path: /api/torrents
method: form method: get
form: form[action$="/login"]
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
remember: on
selectorinputs:
_token:
selector: input[name="_token"]
attribute: value
error: error:
- selector: ul.auth-form__errors - selector: a[href*="/login"]
test: message:
path: / text: "The API key was not accepted by {{ .Config.sitelink }}."
selector: "a[href$=\"/general-settings/edit\"]"
search: search:
paths: paths:
@ -110,12 +98,12 @@ search:
fields: fields:
category: category:
selector: category_id selector: category_id
title: title_optional:
selector: name selector: name
details: details:
selector: details_link selector: details_link
download: download:
text: "{{ re_replace .Result.details \"/torrents/\" \"/torrents/download/\" }}" selector: download_link
infohash: infohash:
selector: info_hash selector: info_hash
poster: poster:
@ -132,8 +120,6 @@ search:
genre: genre:
selector: meta.genres selector: meta.genres
filters: filters:
- name: re_replace
args: ["(?i)^None$", ""]
- name: re_replace - name: re_replace
args: ["(?i)(Science Fiction)", "Science_Fiction"] args: ["(?i)(Science Fiction)", "Science_Fiction"]
- name: re_replace - name: re_replace
@ -179,4 +165,9 @@ search:
minimumseedtime: minimumseedtime:
# 7 days (as seconds = 7 x 24 x 60 x 60) # 7 days (as seconds = 7 x 24 x 60 x 60)
text: 604800 text: 604800
# json UNIT3D 7.2.5 title_filename:
selector: "files[0].name"
optional: true
title:
text: "{{ if and (.Config.single_file_release_use_filename) (eq .Result.files \"1\") (.Result.title_filename) }}{{ .Result.title_filename }}{{ else }}{{ .Result.title_optional }}{{ end }}"
# json UNIT3D 8.0.1