mirror of https://github.com/Jackett/Jackett
sharkpt: new layout
This commit is contained in:
parent
d5bfa7b251
commit
8bd5daef3e
|
@ -11,14 +11,14 @@ links:
|
||||||
caps:
|
caps:
|
||||||
categorymappings:
|
categorymappings:
|
||||||
- {id: 401, cat: Movies, desc: "Movies/电影"}
|
- {id: 401, cat: Movies, desc: "Movies/电影"}
|
||||||
- {id: 404, cat: TV/Documentary, desc: "Documentaries/纪录片"}
|
|
||||||
- {id: 405, cat: TV/Anime, desc: "Animations/动漫"}
|
|
||||||
- {id: 402, cat: TV, desc: "TV Series/电视连续剧"}
|
- {id: 402, cat: TV, desc: "TV Series/电视连续剧"}
|
||||||
- {id: 403, cat: TV, desc: "TV Shows/综艺"}
|
- {id: 403, cat: TV, desc: "TV Shows/综艺"}
|
||||||
|
- {id: 404, cat: TV/Documentary, desc: "Documentaries/纪录片"}
|
||||||
|
- {id: 405, cat: TV/Anime, desc: "Animations/动漫"}
|
||||||
- {id: 406, cat: Audio/Video, desc: "MusicVideo/音乐视频"}
|
- {id: 406, cat: Audio/Video, desc: "MusicVideo/音乐视频"}
|
||||||
- {id: 407, cat: TV/Sport, desc: "Sports/体育"}
|
- {id: 407, cat: TV/Sport, desc: "Sports/体育"}
|
||||||
- {id: 409, cat: Other, desc: "Misc/其他"}
|
|
||||||
- {id: 408, cat: Audio, desc: "Music/HQ Audio"}
|
- {id: 408, cat: Audio, desc: "Music/HQ Audio"}
|
||||||
|
- {id: 409, cat: Other, desc: "Misc/其他"}
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
|
@ -85,86 +85,63 @@ search:
|
||||||
notnewword: 1
|
notnewword: 1
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: table.torrents > tbody > tr:has(a[href^="details.php?id="])
|
selector: div.torrent-item
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
selector: a[href^="?cat="]
|
selector: div.torrent-category
|
||||||
attribute: href
|
case:
|
||||||
filters:
|
img[src$="movies.png"]: 401
|
||||||
- name: querystring
|
img[src$="tvseries.png"]: 402
|
||||||
args: cat
|
img[src$="tvshows.png"]: 403
|
||||||
title_default:
|
img[src$="doc.png"]: 404
|
||||||
selector: a[href^="details.php?id="]
|
img[src$="anime.png"]: 405
|
||||||
|
img[src$="mv.png"]: 406
|
||||||
|
img[src$="sports.png"]: 407
|
||||||
|
img[src$="hqaudio.png"]: 408
|
||||||
|
img[src$="misc.png"]: 409
|
||||||
title:
|
title:
|
||||||
selector: a[title][href^="details.php?id="]
|
selector: a[href^="details.php?id="]
|
||||||
attribute: title
|
|
||||||
optional: true
|
|
||||||
default: "{{ .Result.title_default }}"
|
|
||||||
details:
|
details:
|
||||||
selector: a[href^="details.php?id="]
|
selector: a[href^="details.php?id="]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
_id:
|
||||||
|
selector: a[href^="details.php?id="]
|
||||||
|
attribute: href
|
||||||
|
filters:
|
||||||
|
- name: querystring
|
||||||
|
args: id
|
||||||
download:
|
download:
|
||||||
selector: a[href^="download.php?id="]
|
text: "download.php?id={{ .Result._id }}"
|
||||||
attribute: href
|
description:
|
||||||
poster:
|
selector: div.torrent-subtitle
|
||||||
selector: img[data-src]
|
|
||||||
attribute: data-src
|
|
||||||
imdbid:
|
|
||||||
# site currently only has a badge and rating, the id is not present. just in case a future update.
|
|
||||||
selector: a[href*="imdb.com/title/tt"]
|
|
||||||
attribute: href
|
|
||||||
doubanid:
|
|
||||||
# site currently only has a badge and rating, the id is not present. just in case a future update.
|
|
||||||
selector: a[href*="movie.douban.com/subject/"]
|
|
||||||
attribute: href
|
|
||||||
date_elapsed:
|
|
||||||
# time type: time elapsed (default)
|
|
||||||
selector: td.rowfollow:nth-child(4) > span[title]
|
|
||||||
attribute: title
|
|
||||||
optional: true
|
|
||||||
filters:
|
|
||||||
- name: append
|
|
||||||
args: " +08:00" # CST
|
|
||||||
- name: dateparse
|
|
||||||
args: "yyyy-MM-dd HH:mm:ss zzz"
|
|
||||||
date_added:
|
|
||||||
# time added
|
|
||||||
selector: td.rowfollow:nth-child(4):not(:has(span))
|
|
||||||
optional: true
|
|
||||||
filters:
|
|
||||||
- name: append
|
|
||||||
args: " +08:00" # CST
|
|
||||||
- name: dateparse
|
|
||||||
args: "yyyy-MM-ddHH:mm:ss zzz"
|
|
||||||
date:
|
date:
|
||||||
text: "{{ if or .Result.date_elapsed .Result.date_added }}{{ or .Result.date_elapsed .Result.date_added }}{{ else }}now{{ end }}"
|
selector: div.torrent-when > span
|
||||||
|
attribute: title
|
||||||
|
filters:
|
||||||
|
- name: append
|
||||||
|
args: " +08:00" # CST
|
||||||
|
- name: dateparse
|
||||||
|
args: "yyyy-MM-dd HH:mm:ss zzz"
|
||||||
size:
|
size:
|
||||||
selector: td.rowfollow:nth-child(5)
|
selector: div.torrent-size
|
||||||
seeders:
|
seeders:
|
||||||
selector: td.rowfollow:nth-child(6)
|
selector: div.torrent-seeders
|
||||||
leechers:
|
leechers:
|
||||||
selector: td.rowfollow:nth-child(7)
|
selector: div.torrent-leechers
|
||||||
grabs:
|
grabs:
|
||||||
selector: td.rowfollow:nth-child(8)
|
selector: div.torrent-snatches
|
||||||
downloadvolumefactor:
|
downloadvolumefactor:
|
||||||
case:
|
case:
|
||||||
img.pro_free: 0
|
"span.s-tag:contains(\"FREE\")": 0
|
||||||
img.pro_free2up: 0
|
"span.s-tag:contains(\"50%\")": 0.5
|
||||||
img.pro_50pctdown: 0.5
|
"span.s-tag:contains(\"30%\")": 0.3
|
||||||
img.pro_50pctdown2up: 0.5
|
|
||||||
img.pro_30pctdown: 0.3
|
|
||||||
"*": 1
|
"*": 1
|
||||||
uploadvolumefactor:
|
uploadvolumefactor:
|
||||||
case:
|
case:
|
||||||
img.pro_50pctdown2up: 2
|
"span.s-tag:contains(\"2X\")": 2
|
||||||
img.pro_free2up: 2
|
|
||||||
img.pro_2up: 2
|
|
||||||
"*": 1
|
"*": 1
|
||||||
minimumseedtime:
|
minimumseedtime:
|
||||||
# 7 day (as seconds = 7 x 24 x 60 x 60)
|
# 7 day (as seconds = 7 x 24 x 60 x 60)
|
||||||
text: 604800
|
text: 604800
|
||||||
description:
|
|
||||||
selector: td.rowfollow:nth-child(2)
|
|
||||||
remove: a, img
|
|
||||||
# NexusPHP v1.8.0 2023-02-08
|
# NexusPHP v1.8.0 2023-02-08
|
||||||
|
|
Loading…
Reference in New Issue