mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
skytorrentsclone2: convert to categorymappings
code tidy
This commit is contained in:
@@ -22,18 +22,18 @@ legacylinks:
|
|||||||
- https://www.skytorrents.lol/ # redirects to skytorrents.to
|
- https://www.skytorrents.lol/ # redirects to skytorrents.to
|
||||||
|
|
||||||
caps:
|
caps:
|
||||||
categories:
|
categorymappings:
|
||||||
other: Other
|
- {id: other, cat: Other, desc: Other}
|
||||||
# category=
|
# category=
|
||||||
album: Audio
|
- {id: album, cat: Audio, desc: Album}
|
||||||
ebook: Books
|
- {id: ebook, cat: Books, desc: Ebook}
|
||||||
movie: Movies
|
- {id: movie, cat: Movies, desc: Movie}
|
||||||
show: TV
|
- {id: show, cat: TV, desc: Show}
|
||||||
# type=
|
# type=
|
||||||
audio: Audio
|
- {id: audio, cat: Audio, desc: Audio}
|
||||||
doc: Books
|
- {id: doc, cat: Books, desc: Doc}
|
||||||
games: PC/Games
|
- {id: games, cat: PC/Games, desc: Games}
|
||||||
software: PC
|
- {id: software, cat: PC, desc: Software}
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
@@ -55,17 +55,15 @@ search:
|
|||||||
# https://skytorrents.to/?search=mr+mercedes+s02e05&sort=created
|
# https://skytorrents.to/?search=mr+mercedes+s02e05&sort=created
|
||||||
# https://skytorrents.to/top100?sort=created
|
# https://skytorrents.to/top100?sort=created
|
||||||
paths:
|
paths:
|
||||||
- path: "{{ if .Keywords }}?search={{ .Keywords }}&sort={{ .Config.sort }}{{else}}top100?sort={{ .Config.sort }}{{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=2{{ else }}{{ end }}"
|
||||||
- path: "{{ if .Keywords }}?search={{ .Keywords }}&sort={{ .Config.sort }}&page=3{{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 }}&page=4{{ else }}{{ end }}"
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: tr.result
|
selector: tr.result
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
title:
|
|
||||||
selector: td a
|
|
||||||
category:
|
category:
|
||||||
text: other
|
text: other
|
||||||
category|noappend:
|
category|noappend:
|
||||||
@@ -76,6 +74,8 @@ search:
|
|||||||
# try type=
|
# try type=
|
||||||
selector: a.label[href*="type="]
|
selector: a.label[href*="type="]
|
||||||
optional: true
|
optional: true
|
||||||
|
title:
|
||||||
|
selector: td a
|
||||||
details:
|
details:
|
||||||
selector: td a
|
selector: td a
|
||||||
attribute: href
|
attribute: href
|
||||||
|
Reference in New Issue
Block a user