mirror of
https://github.com/Jackett/Jackett
synced 2025-03-08 21:06:25 +00:00
skytorrentclone: cpnvert to categorymappings
code tidy
This commit is contained in:
parent
49f651e56b
commit
76b80eb4a7
1 changed files with 16 additions and 16 deletions
|
@ -22,18 +22,18 @@ legacylinks:
|
||||||
- https://skytorrents.net/ # skytorrentsclone2 #10000
|
- https://skytorrents.net/ # skytorrentsclone2 #10000
|
||||||
|
|
||||||
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://www.skytorrents.lol/?query=mr+mercedes+s02e05&sort=created
|
# https://www.skytorrents.lol/?query=mr+mercedes+s02e05&sort=created
|
||||||
# https://www.skytorrents.lol/top100?sort=created
|
# https://www.skytorrents.lol/top100?sort=created
|
||||||
paths:
|
paths:
|
||||||
- path: "{{ if .Keywords }}?query={{ .Keywords }}&sort={{ .Config.sort }}{{else}}top100?sort={{ .Config.sort }}{{end}}"
|
- path: "{{ if .Keywords }}?query={{ .Keywords }}&sort={{ .Config.sort }}{{ else }}top100?sort={{ .Config.sort }}{{ end }}"
|
||||||
- path: "{{ if .Keywords }}?query={{ .Keywords }}&sort={{ .Config.sort }}&page=2{{else}}{{end}}"
|
- path: "{{ if .Keywords }}?query={{ .Keywords }}&sort={{ .Config.sort }}&page=2{{ else }}{{ end }}"
|
||||||
- path: "{{ if .Keywords }}?query={{ .Keywords }}&sort={{ .Config.sort }}&page=3{{else}}{{end}}"
|
- path: "{{ if .Keywords }}?query={{ .Keywords }}&sort={{ .Config.sort }}&page=3{{ else }}{{ end }}"
|
||||||
- path: "{{ if .Keywords }}?query={{ .Keywords }}&sort={{ .Config.sort }}&page=4{{else}}{{end}}"
|
- path: "{{ if .Keywords }}?query={{ .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
|
||||||
|
|
Loading…
Add table
Reference in a new issue