2020-05-02 03:59:47 +00:00
---
2020-05-11 19:59:28 +00:00
id : oshenpt
2020-05-10 20:05:19 +00:00
name : OshenPT
description : "OshenPT is a CHINESE Private Torrent Tracker for HD Movies, TV, Music"
2021-09-07 23:09:51 +00:00
language : zh-CN
2020-05-10 20:05:19 +00:00
type : private
encoding : UTF-8
links :
2020-05-21 06:23:56 +00:00
- http://www.oshen.win/
2022-07-25 05:33:57 +00:00
legacylinks :
2020-05-21 06:23:56 +00:00
- https://www.oshen.win/ # forces http
2020-05-02 03:59:47 +00:00
2020-05-10 20:05:19 +00:00
caps :
categorymappings :
- {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: 403, cat: TV, desc : "TV Shows/综艺" }
- {id: 406, cat: Audio/Video, desc : "MusicVideo/音乐MV" }
- {id: 407, cat: TV/Sport, desc : "Sports/运体" }
- {id: 409, cat: Other, desc : "Misc/音乐" }
- {id: 408, cat: Audio, desc : "HQ Audio/无损音乐" }
- {id: 410, cat: Console, desc : "Games/游戏" }
2020-05-02 03:59:47 +00:00
2020-05-10 20:05:19 +00:00
modes :
2020-10-19 03:56:16 +00:00
search : [ q]
2022-07-22 07:12:43 +00:00
tv-search : [ q, season, ep, imdbid, doubanid]
movie-search : [ q, imdbid, doubanid]
2020-05-10 20:05:19 +00:00
music-search : [ q]
2020-05-02 03:59:47 +00:00
2020-05-10 20:05:19 +00:00
settings :
- name : username
type : text
label : Username
- name : password
type : password
label : Password
2023-01-06 00:50:31 +00:00
- 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 OshenPT Web Site. Otherwise just leave it empty."
2020-09-09 07:02:34 +00:00
- name : freeleech
type : checkbox
label : Search freeleech only
default : false
2020-05-10 20:05:19 +00:00
- name : sort
type : select
label : Sort requested from site
2020-10-23 19:51:01 +00:00
default : 4
2020-05-10 20:05:19 +00:00
options :
2020-10-23 19:51:01 +00:00
4 : created
7 : seeders
5 : size
1 : title
2020-05-10 20:05:19 +00:00
- name : type
type : select
label : Order requested from site
2020-10-23 19:51:01 +00:00
default : desc
2020-05-10 20:05:19 +00:00
options :
2020-10-23 19:51:01 +00:00
desc : desc
asc : asc
2020-05-25 03:43:09 +00:00
- 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.
2020-05-02 03:59:47 +00:00
2020-05-10 20:05:19 +00:00
login :
2023-01-06 00:50:31 +00:00
path : login.php
method : form
form : form[action="takelogin.php"]
captcha :
type : image
selector : img[alt="CAPTCHA"]
input : imagestring
2020-05-10 20:05:19 +00:00
inputs :
username : "{{ .Config.username }}"
password : "{{ .Config.password }}"
2023-01-06 00:50:31 +00:00
two_step_code : "{{ .Config.2facode }}"
2020-05-21 06:23:56 +00:00
logout : ""
securelogin : ""
ssl : ""
trackerssl : ""
2020-05-10 20:05:19 +00:00
error :
2020-05-21 06:23:56 +00:00
- selector : td.embedded:has(h2:contains("失败"))
2020-05-10 20:05:19 +00:00
test :
path : index.php
selector : a[href="logout.php"]
2020-05-02 03:59:47 +00:00
2020-05-10 20:05:19 +00:00
search :
paths :
- path : torrents.php
inputs :
$raw : "{{ range .Categories }}cat{{.}}=1&{{end}}"
2023-01-13 17:32:59 +00:00
search : "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ end }}{{ if or .Query.IMDBID .Query.DoubanID }} {{ else }}{{ .Keywords }}{{ end }}{{ if .Query.DoubanID }}{{ .Query.DoubanID }}{{ else }}{{ end }}"
2020-09-09 07:02:34 +00:00
# 0 incldead, 1 active, 2 dead
2020-05-10 20:05:19 +00:00
incldead : 0
2020-09-09 07:02:34 +00:00
# 0 all, 1 normal, 2 free, 3 2x, 4 2xfree, 5 50%, 6 2x50%, 7 30%
spstate : "{{ if .Config.freeleech }}2{{ else }}0{{ end }}"
2022-07-22 07:12:43 +00:00
# 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 }}"
2020-09-09 07:02:34 +00:00
# 0 AND, 1 OR, 2 exact
2020-05-10 20:05:19 +00:00
search_mode : 0
sort : "{{ .Config.sort }}"
type : "{{ .Config.type }}"
2020-05-02 03:59:47 +00:00
2020-05-10 20:05:19 +00:00
rows :
selector : table.torrents > tbody > tr:has(table.torrentname)
2020-05-02 03:59:47 +00:00
2020-05-10 20:05:19 +00:00
fields :
2023-01-06 00:50:31 +00:00
category :
selector : a[href^="?cat="]
attribute : href
filters :
- name : querystring
args : cat
2021-10-23 18:12:34 +00:00
title_default :
2020-05-10 20:05:19 +00:00
selector : a[href^="details.php?id="]
2021-10-23 18:12:34 +00:00
title_optional :
2020-05-10 20:05:19 +00:00
optional : true
selector : a[title][href^="details.php?id="]
attribute : title
2021-10-23 18:12:34 +00:00
title :
text : "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
2020-05-10 20:05:19 +00:00
details :
selector : a[href^="details.php?id="]
attribute : href
download :
selector : a[href^="download.php?id="]
attribute : href
2021-10-23 18:12:34 +00:00
imdbid :
2023-01-06 00:50:31 +00:00
# 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/"]
2020-05-10 20:05:19 +00:00
attribute : href
2021-10-23 18:12:34 +00:00
date_elapsed :
2020-05-10 20:05:19 +00:00
# time type: time elapsed (default)
2023-01-06 00:50:31 +00:00
selector : td.rowfollow:nth-child(4) > span[title]
2020-05-10 20:05:19 +00:00
attribute : title
optional : true
filters :
- name : append
2020-10-09 20:15:17 +00:00
args : " +08:00" # CST
2020-05-10 20:05:19 +00:00
- name : dateparse
args : "2006-01-02 15:04:05 -07:00"
2021-10-23 18:12:34 +00:00
date_added :
2020-05-10 20:05:19 +00:00
# time added
2023-01-06 00:50:31 +00:00
selector : td.rowfollow:nth-child(4):not(:has(span))
2020-05-10 20:05:19 +00:00
optional : true
filters :
- name : append
2020-10-09 20:15:17 +00:00
args : " +08:00" # CST
2020-05-10 20:05:19 +00:00
- name : dateparse
args : "2006-01-0215:04:05 -07:00"
2021-10-23 18:12:34 +00:00
date :
text : "{{ if or .Result.date_elapsed .Result.date_added }}{{ or .Result.date_elapsed .Result.date_added }}{{ else }}now{{ end }}"
2020-05-10 20:05:19 +00:00
size :
2023-01-06 00:50:31 +00:00
selector : td.rowfollow:nth-child(5)
2020-05-10 20:05:19 +00:00
seeders :
2023-01-06 00:50:31 +00:00
selector : td.rowfollow:nth-child(6)
2020-05-10 20:05:19 +00:00
leechers :
2023-01-06 00:50:31 +00:00
selector : td.rowfollow:nth-child(7)
2020-05-10 20:05:19 +00:00
grabs :
2023-01-06 00:50:31 +00:00
selector : td.rowfollow:nth-child(8)
2020-05-10 20:05:19 +00:00
downloadvolumefactor :
case :
img.pro_free : 0
img.pro_free2up : 0
img.pro_50pctdown : 0.5
img.pro_50pctdown2up : 0.5
img.pro_30pctdown : 0.3
"*": 1
uploadvolumefactor :
case :
img.pro_50pctdown2up : 2
img.pro_free2up : 2
img.pro_2up : 2
"*": 1
description :
selector : td:nth-child(2)
remove : a, img
2023-01-06 00:50:31 +00:00
# NexusPHP v1.8.0 2023-01-05