mirror of
https://github.com/Jackett/Jackett
synced 2025-01-03 13:46:10 +00:00
restore sharkpt a private Chinese site. resolves #13904
This commit is contained in:
parent
f7e09eb0da
commit
6bca80f992
3 changed files with 176 additions and 1 deletions
|
@ -521,6 +521,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht
|
|||
* SeedFile
|
||||
* Shadowflow (影) [![(invite needed)][inviteneeded]](#)
|
||||
* Shareisland
|
||||
* SharkPT
|
||||
* Shazbat
|
||||
* SiamBIT
|
||||
* SkipTheCommercials
|
||||
|
|
175
src/Jackett.Common/Definitions/sharkpt.yml
Normal file
175
src/Jackett.Common/Definitions/sharkpt.yml
Normal file
|
@ -0,0 +1,175 @@
|
|||
---
|
||||
id: sharkpt
|
||||
name: SharkPT
|
||||
description: "SharkPT is a CHINESE Private Torrent Tracker for MOVIES / TV / GENERAL"
|
||||
language: zh-CN
|
||||
type: private
|
||||
encoding: UTF-8
|
||||
links:
|
||||
- https://sharkpt.net/
|
||||
|
||||
caps:
|
||||
categorymappings:
|
||||
- {id: 401, cat: Movies, desc: "Movies/电影"}
|
||||
- {id: 402, cat: TV, desc: "TV Series/电视连续剧"}
|
||||
- {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: 407, cat: TV/Sport, desc: "Sports/体育"}
|
||||
- {id: 408, cat: Audio, desc: "Music/HQ Audio"}
|
||||
- {id: 409, cat: Other, desc: "Misc/其他"}
|
||||
|
||||
modes:
|
||||
search: [q]
|
||||
tv-search: [q, season, ep, imdbid, doubanid]
|
||||
movie-search: [q, imdbid, doubanid]
|
||||
music-search: [q]
|
||||
|
||||
settings:
|
||||
- name: username
|
||||
type: text
|
||||
label: Username
|
||||
- name: password
|
||||
type: password
|
||||
label: Password
|
||||
- name: 2facode
|
||||
type: text
|
||||
label: 2FA code
|
||||
- name: info_2fa
|
||||
type: info
|
||||
label: "About 2FA code"
|
||||
default: "Only fill in the <b>2FA code</b> box if you have enabled <b>2FA</b> on the 1ptbar Web Site. Otherwise just leave it empty."
|
||||
- name: freeleech
|
||||
type: checkbox
|
||||
label: Search freeleech only
|
||||
default: false
|
||||
- name: sort
|
||||
type: select
|
||||
label: Sort requested from site
|
||||
default: 4
|
||||
options:
|
||||
4: created
|
||||
7: seeders
|
||||
5: size
|
||||
1: title
|
||||
- name: type
|
||||
type: select
|
||||
label: Order requested from site
|
||||
default: desc
|
||||
options:
|
||||
desc: desc
|
||||
asc: asc
|
||||
- name: info_tpp
|
||||
type: info
|
||||
label: Results Per Page
|
||||
default: For best results, change the <b>Torrents per page:</b> setting to <b>100</b> on your account profile.
|
||||
|
||||
login:
|
||||
path: login.php
|
||||
method: form
|
||||
form: form[action="takelogin.php"]
|
||||
captcha:
|
||||
type: image
|
||||
selector: img[alt="CAPTCHA"]
|
||||
input: imagestring
|
||||
inputs:
|
||||
secret: ""
|
||||
username: "{{ .Config.username }}"
|
||||
password: "{{ .Config.password }}"
|
||||
two_step_code: "{{ .Config.2facode }}"
|
||||
logout: ""
|
||||
securelogin: ""
|
||||
ssl: yes
|
||||
trackerssl: yes
|
||||
error:
|
||||
- selector: td.embedded:has(h2:contains("失败"))
|
||||
test:
|
||||
path: index.php
|
||||
selector: shark-icon-button[onclick*="logout.php"]
|
||||
|
||||
search:
|
||||
paths:
|
||||
- path: torrents.php
|
||||
inputs:
|
||||
$raw: "{{ range .Categories }}cat{{.}}=1&{{end}}"
|
||||
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ end }}{{ if or .Query.IMDBID .Query.DoubanID }} {{ else }}{{ .Keywords }}{{ end }}{{ if .Query.DoubanID }}{{ .Query.DoubanID }}{{ else }}{{ end }}"
|
||||
# 0 incldead, 1 active, 2 dead
|
||||
incldead: 0
|
||||
# 0 all, 1 normal, 2 free, 3 2x, 4 2xfree, 5 50%, 6 2x50%, 7 30%
|
||||
spstate: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}"
|
||||
# 0 title, 1 descr, 3 uploader, 4 imdburl (4 does not appear to work)
|
||||
search_area: "{{ if or .Query.IMDBID .Query.DoubanID }}1{{ else }}0{{ end }}"
|
||||
# 0 AND, 1 OR, 2 exact
|
||||
search_mode: 0
|
||||
sort: "{{ .Config.sort }}"
|
||||
type: "{{ .Config.type }}"
|
||||
notnewword: 1
|
||||
|
||||
rows:
|
||||
selector: div.torrent-item
|
||||
|
||||
fields:
|
||||
category:
|
||||
selector: div.torrent-category
|
||||
case:
|
||||
img[src$="movies64.png"]: 401
|
||||
img[src$="tvseries64.png"]: 402
|
||||
img[src$="tvshows64.png"]: 403
|
||||
img[src$="doc64.png"]: 404
|
||||
img[src$="anime64.png"]: 405
|
||||
img[src$="mv64.png"]: 406
|
||||
img[src$="sports64.png"]: 407
|
||||
img[src$="hqaudio64.png"]: 408
|
||||
img[src$="misc64.png"]: 409
|
||||
title:
|
||||
selector: a[href^="details.php?id="]
|
||||
details:
|
||||
selector: a[href^="details.php?id="]
|
||||
attribute: href
|
||||
_id:
|
||||
selector: a[href^="details.php?id="]
|
||||
attribute: href
|
||||
filters:
|
||||
- name: querystring
|
||||
args: id
|
||||
download:
|
||||
text: "download.php?id={{ .Result._id }}"
|
||||
imdbid:
|
||||
selector: shark-tag-group[onClick*="imdb.com/title/tt"]
|
||||
attribute: onClick
|
||||
doubanid:
|
||||
selector: shark-tag-group[onClick*="movie.douban.com/subject/"]
|
||||
attribute: onClick
|
||||
description:
|
||||
selector: div.torrent-subtitle
|
||||
date:
|
||||
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:
|
||||
selector: div.torrent-size
|
||||
seeders:
|
||||
selector: div.torrent-seeders
|
||||
leechers:
|
||||
selector: div.torrent-leechers
|
||||
grabs:
|
||||
selector: div.torrent-snatches
|
||||
downloadvolumefactor:
|
||||
case:
|
||||
"span.s-tag:contains(\"FREE\")": 0
|
||||
"span.s-tag:contains(\"50%\")": 0.5
|
||||
"span.s-tag:contains(\"30%\")": 0.3
|
||||
"*": 1
|
||||
uploadvolumefactor:
|
||||
case:
|
||||
"span.s-tag:contains(\"2X\")": 2
|
||||
"*": 1
|
||||
minimumseedtime:
|
||||
# 7 day (as seconds = 7 x 24 x 60 x 60)
|
||||
text: 604800
|
||||
# NexusPHP Standard v1.5 Beta 4 2010-09-19
|
|
@ -571,7 +571,6 @@ namespace Jackett.Updater
|
|||
"Definitions/sharespacedb.yml",
|
||||
"Definitions/shareuniversity.yml",
|
||||
"Definitions/sharingue.yml",
|
||||
"Definitions/sharkpt.yml",
|
||||
"Definitions/shellife.yml",
|
||||
"Definitions/shokweb.yml",
|
||||
"Definitions/skipthecommercials.yml", // switch to *-API #8682
|
||||
|
|
Loading…
Reference in a new issue