datascene: -> 8.3.6 resolves #12450

This commit is contained in:
Garfield69
2025-03-11 08:28:28 +13:00
parent 976eb97342
commit 4ef46e9114

View File

@@ -63,6 +63,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
@@ -129,8 +133,15 @@ search:
fields: fields:
category: category:
selector: category_id selector: category_id
title: title_optional:
selector: name selector: name
title_filename:
selector: "files[0].name"
optional: true
files:
selector: num_file
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 }}"
details: details:
selector: details_link selector: details_link
download: download:
@@ -151,8 +162,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)(All Sex)", "All_Sex"] args: ["(?i)(All Sex)", "All_Sex"]
- name: re_replace - name: re_replace
@@ -163,8 +172,6 @@ search:
args: [" & ", "_&_"] args: [" & ", "_&_"]
description: description:
text: "{{ .Result.genre }}" text: "{{ .Result.genre }}"
files:
selector: num_file
seeders: seeders:
selector: seeders selector: seeders
leechers: leechers:
@@ -176,12 +183,17 @@ search:
selector: created_at selector: created_at
filters: filters:
- name: append - name: append
args: " +00:00" # GMT args: " +02:00" # EET
- name: dateparse - name: dateparse
args: "MM/dd/yyyy HH:mm:ss zzz" args: "MM/dd/yyyy HH:mm:ss zzz"
size: size:
selector: size selector: size
downloadvolumefactor: _featured:
selector: featured
case:
False: "{{ .False }}"
True: "{{ .True }}"
downloadvolumefactor_freeleech:
# api returns 0%, 25%, 50%, 75%, 100% # api returns 0%, 25%, 50%, 75%, 100%
selector: freeleech selector: freeleech
case: case:
@@ -191,16 +203,20 @@ search:
75%: 0.25 75%: 0.25
100%: 0 # freeleech 100%: 0 # freeleech
"*": 0 # catch errors "*": 0 # catch errors
uploadvolumefactor: downloadvolumefactor:
text: "{{ if .Result._featured }}0{{ else }}{{ .Result.downloadvolumefactor_freeleech }}{{ end }}"
uploadvolumefactor_double_upload:
# api returns False, True # api returns False, True
selector: double_upload selector: double_upload
case: case:
False: 1 # normal False: 1 # normal
True: 2 # double True: 2 # double
uploadvolumefactor:
text: "{{ if .Result._featured }}2{{ else }}{{ .Result.uploadvolumefactor_double_upload }}{{ end }}"
# global MR is 0.4 but torrents must be seeded for 2 days regardless of ratio # global MR is 0.4 but torrents must be seeded for 2 days regardless of ratio
# minimumratio: # minimumratio:
# text: 0.4 # text: 0.4
minimumseedtime: minimumseedtime:
# 2 days (as seconds = 2 x 24 x 60 x 60) # 2 days (as seconds = 2 x 24 x 60 x 60)
text: 172800 text: 172800
# json UNIT3D 7.2.0 # json UNIT3D 8.3.6