tvchaosuk: add genre results

This commit is contained in:
Garfield69 2022-08-05 16:23:05 +12:00
parent 98ae25ad41
commit dcc0596467
1 changed files with 10 additions and 0 deletions

View File

@ -97,6 +97,7 @@ search:
direction: "{{ .Config.type }}"
qty: 100
freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
# can search by genre but need range support. &genres[]=Action&genres[]=Comedy for Action and Comedy
rows:
selector: table > tbody > tr
@ -126,6 +127,15 @@ search:
args: "&w=180&h=270" # for display on dashboard
- name: replace
args: ["https://images.weserv.nl/?url=https://via.placeholder.com/600x900&w=180&h=270", ""]
genre:
selector: td:nth-last-child(6)
filters:
- name: replace
args: ["\n", ""]
- name: validate
args: "Action, Adventure, Animation, Biography, Comedy, Crime, Documentary, Drama, Family, Fantasy, Game-Show, History, Horror, Music, Musical, Mystery, News, Reality-TV, Romance, Science Fiction, Sitcom, Sport, Talk-Show, Thriller, War, Western"
description:
text: "{{ .Result.genre }}"
size:
selector: td:nth-last-child(4)
seeders: