Skip to content

Commit

Permalink
Dev (#10)
Browse files Browse the repository at this point in the history
* fix(audiences): 支持Microsoft Edge浏览器获取做种体积 (pt-plugins#1851)

Co-authored-by: Shl-Cool <[email protected]>

* fix: chrome as onBeforeSendHeaders default

* build: full use vite to build pkg

* build: ignore extra `README.md` file in resource folder

* fix(ts): add shim-env for vite

* fix(SSD): 修复SSD副标题显示问题

同时增加 MiniDB 标签

* deps: remove webpack loader

* deps: use vite plugin to provide node polyfills

* feat (x-ite): 搜索关键词替换, 结果更精确 (pt-plugins#1860)

* feat: 启用 `searchEntryConfig.area.keyAutoMatch` 正则 Unicode 支持

* feat: 增加禁用 `searchEntryConfig.area` 选项

* feat: support x-ite (pt-plugins#1862)

* build: disable rollup treeshake because we use eval

* fix(mt): 拖放链接到助手图标无效 pt-plugins#1870

* feat: qb 自定义标签 pt-plugins#1883

* 不需要留空即可,逗号分隔. 比如: PTPP,MOVIEPILOT

* fix(mt): keep upload task

* fix(hh): level requirements

* fix(hdh): pt-plugins#1850 level requirements

* fix(ss): pt-plugins#1736 uploads

* site(YemaPT): 初步支持搜索和部分个人信息获取

* ci: lock pr action build version to `1.x.x.1`

closed: pt-plugins#1890

* fix(hdd): bonusPerHour

* fix fsm

* fix(fsm): join time

* fix(pig): HnR count (pt-plugins#1898)

* fix(fsm): search result link

* feat: 适配新站点ToSky (pt-plugins#1886)

* feat(blu): remove domain xyz

* fix(userData): 升级用户数据时,先并入最新的hosts下数据(如有)

may closed: pt-plugins#1907

* fix(ad): seeding and seedingSize

* feat(u3d): seeding status (pt-plugins#1901)

* feat(blu): remove domain xyz

* feat(u3d): support seeding status

* fix(u3d): remove wrong progress

* feat(aihter): support complete status

* Revert "feat(aihter): support complete status"

This reverts commit 6735f83.

* feat(u3d): support more status

* fix(u3d): unsuitable judgment conditions

* fix(bhd): unsuitable judgment condition

* fix(u3d): progess

* fix(xhb): 更新升级条件

* fix(mt): 搜索页下载种子到本地 pt-plugins#1808

* fix: remove wrong config

pt-plugins#1798

* fix: category name

使用官方名

* feat(hdb): support exclusive tag

* fix(hddolby): noseed tag

* fix(ssd): system message count.

* feat(yemapt):  update level name and requirements and add extra info

* fix(yemapt): update level name and requirements (pt-plugins#1919)

* fix(yemapt): add user uploads size / seeding count and size / bonus per hour

* fix(TL): message count

* fix(pterclub): fix uploads count and rename the level name

* Revert "fix(pterclub): fix uploads count and rename the level name"

This reverts commit 68604b8.

* fix(m-team):使用api域名 (pt-plugins#1917)

* 修改馒头请求域名

* 修复种子页无法下载到

* 用户数据切换为api域名

* 搜索切换为api域名、支持种子页下载全部

* 增加api站点配置

* 适配搜索页跳转到网站

* fix(pterclub): fix uploads count and rename the level name

* fix(pterclub): make the user level name display consistent with the actual

* fix(pterclub): uploads torrent count exclude dead torrent

* fix(pter): add back check=checked

* fix(acm): domain change

* fix(mt): 流控调整 pt-plugins#1910

* feat: site down, remove ptlsp

* feat: oshen remove uneed cdn

* fix(dt): domain change

* fix(dt): domain change

* fix: formatSize

* fix(mt): 重构批量下载, 移除 `复制下载链接` 功能 pt-plugins#1910

* 优化推送消息提醒
* 复制下载链接, 功能上和解析推送种子冲突, 而且解析推送种子更方便.

* fix(mt): fix mt refresh rate limited (pt-plugins#1938)

* fix: mt refresh fails due to rate limiting

pt-plugins#1936

* change the delay from 8000 to 2100

* revert linter changes

* feat: some site change

pt-plugins#1888

* revert: collaborator

* fix(jptv): levelRequirements

* fix(putao): seeding number

* sitedown: hdfunc(hdzone)

* sitedown: hdmayi

* fix(HDDolby): levelRequirements pt-plugins#1922

* doc: update readme

* fix(star-space): 修复数据获取和搜索功能

* 修复数据获取错误

* 修复imdb搜索

* fix(ptt): user level info. pt-plugins#1955

* fix: "G"/"T" instead by "GB"/"TB" (pt-plugins#1963)

* feat: 2024-07-29 ptt user level change

* fix(mt): use new apil myPeerStatistics

* fix(ssd): levelRequirements pt-plugins#1970

* fix(HDB): update seeding size selector

* fix(btschool): 修复数据获取

* 修复数据获取

* fix(star-space):修复搜索结果时间格式不正确 (pt-plugins#1974)

* fix(star-space):修复搜索结果时间格式不正确

* 修改时间函数

* feat(PTP): add freeleech tag

* fix(Luminance): plugins, searchEntryConfig, user info

* feat(pornbay): new site

* feat(cathode-ray.tube): new site

* fix(ptvicomo): 修复搜索种子详情不显示

* feat(bitporn): new site

* fix(fsm): send torrent in detail page

* feat(milkie): new site

* fix(milkie): auth with api key

* feat: authTokenTip

* feat(superbits): searchEntry

* feat(digitalcore): searchEntry

* fix(fsm): joinTime

* fix(fsm): default apiCdn

* feat: getInfoAjaxCache

* fix pt-plugins/issues/1744

* Create .gitattributes

* fix(kamept): getInfoAjaxCache pt-plugins#1995

* fix(tjupt): 站点搜索范围功能失效

* update categories.[*].result format: &cat=$id$ changed to &cat[]=$id$

* feat:调整图表样式 (pt-plugins#1994)

* feat:调整图表样式

---------

Co-authored-by: SHL-COOL <[email protected]>
Co-authored-by: Shl-Cool <[email protected]>
Co-authored-by: IITII <[email protected]>
Co-authored-by: Rhilip <[email protected]>
Co-authored-by: 栽培者 <[email protected]>
Co-authored-by: Rhilip <[email protected]>
Co-authored-by: Rhilip <[email protected]>
Co-authored-by: Dawei Huang <[email protected]>
Co-authored-by: Trim21 <[email protected]>
Co-authored-by: fzlins <[email protected]>
Co-authored-by: Hui-Shao <[email protected]>
Co-authored-by: halehal <[email protected]>
Co-authored-by: ted423 <[email protected]>
Co-authored-by: LovelyBaibai <[email protected]>
Co-authored-by: Bright-W <[email protected]>
Co-authored-by: 刘志龙 <[email protected]>
Co-authored-by: fzlins <[email protected]>
Co-authored-by: Tian J <[email protected]>
Co-authored-by: hui-shao <[email protected]>
Co-authored-by: SHL-COOL <[email protected]>
Co-authored-by: dragon <[email protected]>
Co-authored-by: Araputa <[email protected]>
Co-authored-by: Tom Yang <[email protected]>
Co-authored-by: mitlearn <[email protected]>
Co-authored-by: ixff <[email protected]>
Co-authored-by: dragon <[email protected]>
  • Loading branch information
1 parent 309729e commit 857c827
Show file tree
Hide file tree
Showing 44 changed files with 1,488 additions and 1,031 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Auto detect text files and perform LF normalization
* text=auto
* eol=lf
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p align="center">
<img src="https://github.com/pt-plugins/PT-Plugin-Plus/raw/master/public/assets/icon-128.png"><br/>
<a href="https://github.com/pt-plugins/PT-Plugin-Plus/releases/latest" title="GitHub Releases"><img src="https://img.shields.io/github/release/pt-plugins/PT-Plugin-Plus.svg?label=Latest%20Release"></a>
<a href="https://github.com/pt-plugins/PT-Plugin-Plus/releases?include_prereleases/latest" title="GitHub Pre-releases"><img src="https://img.shields.io/github/release/pt-plugins/PT-Plugin-Plus.svg?include_prereleases&label=pre-release"></a>
<a href="https://github.com/pt-plugins/PT-Plugin-Plus/releases" title="GitHub All Releases"><img alt="Releases" src="https://img.shields.io/github/downloads/pt-plugins/PT-Plugin-Plus/total.svg?label=Downloads"></a>
<img src="https://img.shields.io/badge/Used-TypeScript%20Vue-blue.svg">
<a href="https://github.com/pt-plugins/PT-Plugin-Plus/LICENSE" title="GitHub license"><img src="https://img.shields.io/github/license/pt-plugins/PT-Plugin-Plus.svg?label=License" alt="GitHub license"/></a>
Expand All @@ -19,10 +19,12 @@ PT 助手 Plus,是一款浏览器插件(Web Extensions),一个可以提

> ~~注意:`1.0.0` 以下的配置不能直接用于该版本,请勿将 `1.0.0` 以下的版本配置进行导入操作。~~
最新版本以及功能请登录后从[Action](https://github.com/pt-plugins/PT-Plugin-Plus/actions)里获取。如不会安装请参看Wiki
最新版本请登录后从[Pre-release](https://github.com/pt-plugins/PT-Plugin-Plus/releases?include_prereleases/latest)获取。如不会安装请参看Wiki

**提Issue前请务必检查Dev版本、Pull Request以及之前的Issue**

**M-Team 请于站点控制台 -> 实验室 获取 Token 填入后使用**

## 已支持的浏览器
- <a href="https://chrome.google.com/webstore/detail/abkdiiddckphbigmakaojlnmakpllenb" title="已在 Chrome Web Store 市场上发布的版本">![Google Chrome](https://img.shields.io/chrome-web-store/v/abkdiiddckphbigmakaojlnmakpllenb.svg?label=Google%20Chrome)</a> (已下架,见[原因](https://github.com/pt-plugins/PT-Plugin-Plus/wiki#%E5%B7%B2%E8%A2%AB%E4%B8%8B%E6%9E%B6%E7%9A%84%E6%B5%8F%E8%A7%88%E5%99%A8)
- <a href="https://addons.mozilla.org/zh-CN/firefox/addon/pt-plugin-plus/" title="已在 Mozilla Add-on 上发布的版本">![Mozilla Firefox](https://img.shields.io/amo/v/pt-plugin-plus.svg?label=Mozilla%20Firefox)</a> (已下架,见[原因](https://github.com/pt-plugins/PT-Plugin-Plus/wiki#%E5%B7%B2%E8%A2%AB%E4%B8%8B%E6%9E%B6%E7%9A%84%E6%B5%8F%E8%A7%88%E5%99%A8)
Expand Down
27 changes: 21 additions & 6 deletions resource/schemas/Luminance/config.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"name": "Luminance",
"ver": "0.0.1",
"plugins": [{
"name": "种子列表",
"pages": ["/torrents.php"],
"scripts": ["/schemas/NexusPHP/common.js", "/schemas/Common/torrents.js"]
}],
"searchEntry": [{
"name": "all",
"enabled": true
}],
"searchEntryConfig": {
"page": "/browse.php",
"queryString": "search=$key$&searchin=title",
"page": "/torrents.php",
"queryString": "title=$key$&action=advanced",
"resultType": "html",
"parseScriptFile": "/schemas/Luminance/getSearchResult.js"
},
Expand Down Expand Up @@ -35,11 +40,12 @@
"filters":["query.text().sizeToNumber()"]
},
"seeding": {
"selector": ["#nav_seeding_r"]
"selector": ["#nav_seeding"],
"filters": ["query.text().match(/\\d+/)[0]"]
},
"leeching": {
"selector": ["#nav_leeching"],
"filters": ["query.match(/\\d+/)[0]"]
"filters": ["query.text().match(/\\d+/)[0]"]
}
}
},
Expand All @@ -51,7 +57,7 @@
},
"uploads": {
"selector": [".stats:eq(3) > li:eq(8)"],
"filters": ["query.match(/\\d+/)[0]"]
"filters": ["query.text().match(/\\d+/)[0]"]
},
"joinTime": {
"selector": [".time:eq(0)"],
Expand All @@ -68,6 +74,15 @@
"filters": ["query.text().match(/Size: (.*)/)[1].sizeToNumber()"]
}
}
},
"common": {
"page": "/torrents.php",
"fields": {
"downloadURLs": {
"selector": ["table.torrent_table a[href*='action=download&id='],a.button.blueButton"],
"filters": ["query.toArray()"]
}
}
}
}
}
}
112 changes: 112 additions & 0 deletions resource/sites/bitporn.eu/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"name": "BitPorn",
"timezoneOffset": "+0200",
"description": "BitPorn",
"url": "https://bitporn.eu/",
"icon": "https://bitporn.eu/favicon.ico",
"tags": ["成人"],
"schema": "NexusPHP",
"host": "bitporn.eu",
"levelRequirements": [
{
"level": 1,
"name": "Power User",
"interval": "4",
"downloaded": "5GB",
"ratio": "1",
"seedingPoints": "5",
"privilege": "可以发送邀请;可以直接发布种子;可以查看用户列表;可以请求续种;可以查看排行榜;可以查看其它用户的种子历史(如果用户隐私等级未设置为\"\")"
},
{
"level": 2,
"name": "Elite User",
"interval": "4",
"downloaded": "100GB",
"ratio": "1.2",
"seedingPoints": "500",
"privilege": "Elite User及以上用户封存账号后不会被删除。"
},
{
"level": 3,
"name": "Crazy User",
"interval": "8",
"downloaded": "250GB",
"ratio": "1.8",
"seedingPoints": "1500",
"privilege": "得到两个邀请名额;可以在做种/下载/发布的时候选择匿名模式。"
},
{
"level": 4,
"name": "Insane User",
"interval": "24",
"downloaded": "500GB",
"ratio": "2.2",
"seedingPoints": "10000",
"privilege": "可以查看普通日志。"
},
{
"level": 5,
"name": "Veteran User",
"interval": "32",
"downloaded": "750GB",
"ratio": "3",
"seedingPoints": "50000",
"privilege": "得到三个邀请名额;可以查看其它用户的评论、帖子历史。Veteran User及以上用户会永远保留账号。"
},
{
"level": 6,
"name": "Extreme User",
"interval": "50",
"downloaded": "1TB",
"ratio": "3.55",
"seedingPoints": "100000",
"privilege": "可以更新过期的外部信息;可以查看Extreme User论坛。"
},
{
"level": 7,
"name": "Ultimate User",
"interval": "70",
"downloaded": "1.5TB",
"ratio": "4",
"seedingPoints": "150000",
"privilege": "得到五个邀请名额。"
},
{
"level": 8,
"name": "BitPorn Master",
"interval": "100",
"downloaded": "3TB",
"ratio": "4.55",
"seedingPoints": "500000",
"privilege": "得到十个邀请名额。"
}
],
"collaborator": ["tomyangsh"],
"selectors": {
"userSeedingTorrents": {
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding",
"fields": {
"seeding": {
"selector": [
"b:first"
],
"filters": [
"query.text()"
]
},
"seedingSize": {
"selector": "",
"filters": [
"query.text().match(/Total size:(.*?)Prev/g)",
"(query && query.length>0) ? query[0].replace('Total size:', '').replace('<< Prev', '').trim() : 0",
"(query != 0) ? query.sizeToNumber() : 0"
]
}
}
}
},
"torrentTagSelectors": [{
"name": "Free",
"selector": "span[title='Free']"
}]
}
Loading

0 comments on commit 857c827

Please sign in to comment.