portugas: -> 8.3.6

This commit is contained in:
Garfield69
2025-01-19 05:08:55 +13:00
parent 41321dfac6
commit 53ac6cd530

View File

@@ -34,11 +34,15 @@ settings:
- name: info_key - name: info_key
type: info type: info
label: About your API key label: About your API key
default: "Find or Generate a new API Token by accessing your <a href=\"https://portugas.org/\" target=\"_blank\">Portugas</a> account <i>My Security</i> page and clicking on the <b>API Token</b> tab." default: "Find or Generate a new API Token by accessing your <a href=\"https://portugas.org/\" target=\"_blank\">Portugas</a> account <i>My Settings</i> page and clicking on the <b>API Key</b> tab."
- name: freeleech - name: freeleech
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
@@ -89,7 +93,7 @@ search:
imdbId: "{{ .Query.IMDBIDShort }}" imdbId: "{{ .Query.IMDBIDShort }}"
tmdbId: "{{ .Query.TMDBID }}" tmdbId: "{{ .Query.TMDBID }}"
tvdbId: "{{ .Query.TVDBID }}" tvdbId: "{{ .Query.TVDBID }}"
free: "{{ if .Config.freeleech }}1{{ else }}{{ end }}" "free[]": "{{ if .Config.freeleech }}100{{ else }}{{ end }}"
sortField: "{{ .Config.sort }}" sortField: "{{ .Config.sort }}"
sortDirection: "{{ .Config.type }}" sortDirection: "{{ .Config.type }}"
perPage: 100 perPage: 100
@@ -107,11 +111,18 @@ search:
selector: category_id selector: category_id
_audiopt: _audiopt:
selector: audio_pt selector: audio_pt
title: case:
False: "{{ .False }}"
True: "{{ .True }}"
title_optional:
selector: name selector: name
filters: title_filename:
- name: append selector: "files[0].name"
args: "{{ if eq .Result._audiopt \"1\" }} Portuguese PT-PT{{ else }}{{ end }}" 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 }}{{ if .Result._audiopt }} Portuguese PT-PT{{ else }}{{ end }}"
details: details:
selector: details_link selector: details_link
download: download:
@@ -142,8 +153,6 @@ search:
args: [" & ", "_&_"] args: [" & ", "_&_"]
description: description:
text: "{{ .Result.genre }}" text: "{{ .Result.genre }}"
files:
selector: num_file
seeders: seeders:
selector: seeders selector: seeders
leechers: leechers:
@@ -160,7 +169,12 @@ search:
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:
@@ -170,15 +184,19 @@ search:
75%: 0.25 75%: 0.25
100%: 0 # freeleech 100%: 0 # freeleech
"*": 0 # catch errors "*": 0 # catch errors
uploadvolumefactor: downloadvolumefactor:
# api returns 0=false, 1=true text: "{{ if .Result._featured }}0{{ else }}{{ .Result.downloadvolumefactor_freeleech }}{{ end }}"
uploadvolumefactor_double_upload:
# api returns False, True
selector: double_upload selector: double_upload
case: case:
0: 1 # normal False: 1 # normal
1: 2 # double True: 2 # double
uploadvolumefactor:
text: "{{ if .Result._featured }}2{{ else }}{{ .Result.uploadvolumefactor_double_upload }}{{ end }}"
minimumratio: minimumratio:
text: 1.0 text: 1.0
minimumseedtime: minimumseedtime:
# 3 days (as seconds = 3 x 24 x 60 x 60) # 3 days (as seconds = 3 x 24 x 60 x 60)
text: 259200 text: 259200
# json UNIT3D 6.3.0 (custom) # json UNIT3D 8.3.6 (custom)