YTS: correct sort

the default is date_added so using sort=date_added instead of sort_by=date_added did not make any difference but at least now we are in line with the api docs ;-)
This commit is contained in:
Garfield69 2023-06-06 07:33:07 +12:00
parent b9655f1302
commit 3ba502a378
1 changed files with 3 additions and 2 deletions

View File

@ -61,12 +61,13 @@ search:
type: json
inputs:
# ignore ' (e.g. search for america's Next Top Model)
query_term: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
# without this the API sometimes returns nothing
limit: 50
sort: date_added
sort_by: date_added
order_by: desc
keywordsfilters:
# ignore ' (e.g. search for america's Next Top Model)
- name: re_replace
args: ["[^\\w]+", " "]