magnetdl: convert to categorymappings

code tidy
This commit is contained in:
Garfield69 2020-11-03 13:58:05 +13:00
parent 333d22d13d
commit 564f9cb65c
1 changed files with 13 additions and 13 deletions

View File

@ -23,14 +23,14 @@ legacylinks:
- https://magnetdl.unblockit.top/
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}
- {id: Movie, cat: Movies, desc: Movies}
- {id: Music, cat: Audio, desc: Music}
- {id: E-Book, cat: Books/EBook, desc: Ebooks}
- {id: Game, cat: PC/Games, desc: Games}
- {id: Software, cat: PC, desc: Software}
- {id: Other, cat: Other, desc: Other}
modes:
search: [q]
@ -75,14 +75,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