torrentquest: convert to categorymappings

code tidy
This commit is contained in:
Garfield69 2020-11-04 10:51:08 +13:00
parent f10d132e54
commit 36e78d08da
1 changed files with 11 additions and 11 deletions

View File

@ -9,14 +9,14 @@ links:
- https://torrentquest.com/
caps:
categories:
TV: TV
Movie: Movies
Music: Audio
E-Book: Books/EBook
Game: PC/Games
Software: PC
Other: Other
categorymappings:
- {id: TV, cat: TV, desc: "TV Shows"}
- {id: Movie, cat: Movies, desc: Movies}
- {id: Music, cat: Audio, desc: Music}
- {id: E-Book, cat: Books/EBook, desc: E-Books}
- {id: Game, cat: PC/Games, desc: Games}
- {id: Software, cat: PC, desc: Software}
- {id: Other, cat: Other, desc: Other}
modes:
search: [q]
@ -62,14 +62,14 @@ search:
selector: tr:has(td.m)
fields:
title:
selector: td.n a
attribute: title
category:
text: Other
category|noappend:
optional: true
selector: td[class^="t"]
title:
selector: td.n a
attribute: title
details:
selector: td.n a
attribute: href