mirror of
https://github.com/Jackett/Jackett
synced 2025-03-06 19:58:38 +00:00
skytorrentsclone2: convert to categorymappings
code tidy
This commit is contained in:
parent
76b80eb4a7
commit
baac86e376
1 changed files with 16 additions and 16 deletions
|
@ -22,18 +22,18 @@ legacylinks:
|
|||
- https://www.skytorrents.lol/ # redirects to skytorrents.to
|
||||
|
||||
caps:
|
||||
categories:
|
||||
other: Other
|
||||
categorymappings:
|
||||
- {id: other, cat: Other, desc: Other}
|
||||
# category=
|
||||
album: Audio
|
||||
ebook: Books
|
||||
movie: Movies
|
||||
show: TV
|
||||
- {id: album, cat: Audio, desc: Album}
|
||||
- {id: ebook, cat: Books, desc: Ebook}
|
||||
- {id: movie, cat: Movies, desc: Movie}
|
||||
- {id: show, cat: TV, desc: Show}
|
||||
# type=
|
||||
audio: Audio
|
||||
doc: Books
|
||||
games: PC/Games
|
||||
software: PC
|
||||
- {id: audio, cat: Audio, desc: Audio}
|
||||
- {id: doc, cat: Books, desc: Doc}
|
||||
- {id: games, cat: PC/Games, desc: Games}
|
||||
- {id: software, cat: PC, desc: Software}
|
||||
|
||||
modes:
|
||||
search: [q]
|
||||
|
@ -55,17 +55,15 @@ search:
|
|||
# https://skytorrents.to/?search=mr+mercedes+s02e05&sort=created
|
||||
# https://skytorrents.to/top100?sort=created
|
||||
paths:
|
||||
- path: "{{ if .Keywords }}?search={{ .Keywords }}&sort={{ .Config.sort }}{{else}}top100?sort={{ .Config.sort }}{{end}}"
|
||||
- path: "{{ if .Keywords }}?search={{ .Keywords }}&sort={{ .Config.sort }}&page=2{{else}}{{end}}"
|
||||
- path: "{{ if .Keywords }}?search={{ .Keywords }}&sort={{ .Config.sort }}&page=3{{else}}{{end}}"
|
||||
- path: "{{ if .Keywords }}?search={{ .Keywords }}&sort={{ .Config.sort }}&page=4{{else}}{{end}}"
|
||||
- path: "{{ if .Keywords }}?search={{ .Keywords }}&sort={{ .Config.sort }}{{ else }}top100?sort={{ .Config.sort }}{{ end }}"
|
||||
- path: "{{ if .Keywords }}?search={{ .Keywords }}&sort={{ .Config.sort }}&page=2{{ else }}{{ end }}"
|
||||
- path: "{{ if .Keywords }}?search={{ .Keywords }}&sort={{ .Config.sort }}&page=3{{ else }}{{ end }}"
|
||||
- path: "{{ if .Keywords }}?search={{ .Keywords }}&sort={{ .Config.sort }}&page=4{{ else }}{{ end }}"
|
||||
|
||||
rows:
|
||||
selector: tr.result
|
||||
|
||||
fields:
|
||||
title:
|
||||
selector: td a
|
||||
category:
|
||||
text: other
|
||||
category|noappend:
|
||||
|
@ -76,6 +74,8 @@ search:
|
|||
# try type=
|
||||
selector: a.label[href*="type="]
|
||||
optional: true
|
||||
title:
|
||||
selector: td a
|
||||
details:
|
||||
selector: td a
|
||||
attribute: href
|
||||
|
|
Loading…
Add table
Reference in a new issue