Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pt-plugins/PT-Plugin-Plus
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: da5dae2
Choose a base ref
...
head repository: pt-plugins/PT-Plugin-Plus
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e430886
Choose a head ref
Loading
Showing with 16,183 additions and 16,585 deletions.
  1. +20 −6 .eslintrc.json
  2. +3 −0 .gitattributes
  3. +13 −22 .github/workflows/build_action.yml
  4. +6 −8 .github/workflows/build_canary.yml
  5. +4 −2 README.md
  6. +0 −5 debug/config/config.json
  7. +0 −459 debug/data/beforeSearching.json
  8. +0 −24 debug/package.json
  9. +0 −99 debug/src/App.ts
  10. +0 −286 debug/src/BuildPlugin.ts
  11. +0 −126 debug/src/SearchData.ts
  12. +0 −6 debug/src/buildResource.ts
  13. +0 −5 debug/src/index.ts
  14. +0 −116 debug/tsconfig.json
  15. +0 −4 debug/typings.d.ts
  16. +0 −525 debug/yarn.lock
  17. +26 −0 dev.md
  18. +21 −0 index.html
  19. +32 −72 package.json
  20. +10 −10 public/_locales/en/messages.json
  21. +10 −10 public/_locales/zh_CN/messages.json
  22. +1 −0 public/assets/media-server/emby.svg
  23. +18 −18 public/libs/notice/notice.js
  24. +6 −0 public/libs/types.expand.js
  25. +86 −85 public/manifest.json
  26. +11 −4 resource/clients/qbittorrent/init.js
  27. +68 −15 resource/i18n/en.json
  28. +64 −11 resource/i18n/zh-CN.json
  29. +310 −310 resource/libs/album/style.css
  30. +1 −1 resource/publicSites/douban.com/config.json
  31. +19 −0 resource/publicSites/themoviedb.org/config.json
  32. +58 −0 resource/publicSites/themoviedb.org/media.js
  33. +16 −16 resource/schemas/Common/details.js
  34. +88 −0 resource/schemas/Luminance/config.json
  35. +64 −0 resource/schemas/Luminance/getSearchResult.js
  36. +1 −1 resource/schemas/NexusPHP/common.js
  37. +3 −3 resource/schemas/NexusPHP/config.json
  38. +15 −16 resource/schemas/NexusPHP/details.js
  39. +506 −506 resource/schemas/NexusPHP/getSearchResult.js
  40. +9 −5 resource/schemas/UNIT3D/config.json
  41. +15 −16 resource/schemas/UNIT3D/details.js
  42. +1 −1 resource/schemas/UNIT3D/getSearchResult.js
  43. +89 −0 resource/sites/abtorrents.me/config.json
  44. +64 −0 resource/sites/abtorrents.me/getSearchResult.js
  45. +136 −72 resource/sites/audiences.me/config.json
  46. +188 −0 resource/sites/audionews.org/config.json
  47. +161 −156 resource/sites/beyond-hd.me/config.json
  48. +285 −285 resource/sites/beyond-hd.me/getSearchResult.js
  49. +112 −0 resource/sites/bitporn.eu/config.json
  50. +0 −1 resource/sites/blutopia.cc/config.json
  51. +18 −15 resource/sites/broadcasthe.net/config.json
  52. +7 −1 resource/sites/byr.pt/config.json
  53. +0 −292 resource/sites/club.hares.top/config.json
  54. +0 −102 resource/sites/cnlang.org/config.json
  55. +0 −126 resource/sites/cnlang.org/getUserSeedingTorrents.js
  56. +267 −0 resource/sites/crabpt.vip/config.json
  57. +271 −270 resource/sites/cyanbug.net/config.json
  58. +146 −0 resource/sites/digitalcore.club/config.json
  59. +73 −0 resource/sites/digitalcore.club/getSearchResult.js
  60. +21 −4 resource/sites/discfan.net/config.json
  61. +363 −360 resource/sites/ecustpt.eu.org/config.json
  62. +7 −4 resource/sites/{asiancinema.me → eiga.moi}/config.json
  63. 0 resource/sites/{asiancinema.me → eiga.moi}/getSearchResult.js
  64. +144 −114 resource/sites/fsm.name/config.json
  65. +103 −0 resource/sites/fsm.name/getSearchResult.js
  66. +89 −34 resource/sites/gay-torrents.org/config.json
  67. +0 −94 resource/sites/gay-torrents.org/getSearchResult.js
  68. +3 −0 resource/sites/gazellegames.net/config.json
  69. +4 −1 resource/sites/hdbits.org/config.json
  70. +2 −2 resource/sites/hdchina.org/getSearchResult.js
  71. +8 −8 resource/sites/hdcity.city/config.json
  72. +38 −16 resource/sites/hddolby.com/config.json
  73. +100 −73 resource/sites/hdfans.org/config.json
  74. +0 −92 resource/sites/hdfun.me/config.json
  75. +3 −3 resource/sites/hdhome.org/config.json
  76. +0 −120 resource/sites/hdmayi.com/config.json
  77. +7 −7 resource/sites/hhanclub.top/config.json
  78. +2 −1 resource/sites/hhanclub.top/getSearchResult.js
  79. +67 −1 resource/sites/joyhd.net/config.json
  80. +2 −2 resource/sites/jpopsuki.eu/config.json
  81. +7 −0 resource/sites/jpopsuki.eu/getSearchResult.js
  82. +17 −3 resource/sites/jptv.club/config.json
  83. +2 −1 resource/sites/kamept.com/config.json
  84. +0 −297 resource/sites/kp.m-team.cc/config.json
  85. +0 −127 resource/sites/kp.m-team.cc/getUserSeedingTorrents.js
  86. +0 −35 resource/sites/kp.m-team.cc/torrents.js
  87. +46 −0 resource/sites/kufirc.com/config.json
  88. +128 −0 resource/sites/lemonhd.club/config.json
  89. +138 −0 resource/sites/login.superbits.org/config.json
  90. +73 −0 resource/sites/login.superbits.org/getSearchResult.js
  91. +289 −0 resource/sites/losslessclub.com/config.json
  92. +102 −0 resource/sites/milkie.cc/config.json
  93. +83 −0 resource/sites/milkie.cc/getSearchResult.js
  94. +0 −31 resource/sites/oldtoons.world/config.json
  95. +77 −0 resource/sites/our.kelu.one/config.json
  96. +3 −2 resource/sites/ourbits.club/config.json
  97. +117 −105 resource/sites/passthepopcorn.me/getSearchResult.js
  98. +36 −19 resource/sites/piggo.me/config.json
  99. +51 −0 resource/sites/pornbay.org/config.json
  100. +17 −0 resource/sites/pt.0ff.cc/config.json
  101. +76 −0 resource/sites/pt.gtk.pw/config.json
  102. +19 −0 resource/sites/pt.hd4fans.org/config.json
  103. +35 −2 resource/sites/pt.hdpost.top/config.json
  104. +3 −0 resource/sites/pt.hdupt.com/config.json
  105. +3 −0 resource/sites/pt.keepfrds.com/config.json
  106. +7 −9 resource/sites/pt.sjtu.edu.cn/config.json
  107. +9 −1 resource/sites/ptcafe.club/config.json
  108. +11 −0 resource/sites/ptchdbits.co/config.json
  109. +13 −9 resource/sites/pterclub.com/config.json
  110. +223 −0 resource/sites/ptlgs.org/config.json
  111. +47 −9 resource/sites/ptvicomo.net/config.json
  112. +327 −0 resource/sites/qingwapt.com/config.json
  113. +168 −0 resource/sites/raingfh.top/config.json
  114. +6 −3 resource/sites/{redacted.ch → redacted.sh}/config.json
  115. +20 −20 resource/sites/rousi.zip/config.json
  116. +221 −0 resource/sites/rutracker.org/config.json
  117. +16 −4 resource/sites/share.ilolicon.com/config.json
  118. +42 −62 resource/sites/springsunday.net/config.json
  119. +195 −113 resource/sites/star-space.net/config.json
  120. +73 −0 resource/sites/star-space.net/details.js
  121. +48 −0 resource/sites/sunny/config.json
  122. +112 −0 resource/sites/t.tosky.club/config.json
  123. +18 −13 resource/sites/tjupt.org/config.json
  124. +6 −3 resource/sites/{desitorrents.tv → torrent.desi}/config.json
  125. +16 −16 resource/sites/ubits.club/config.json
  126. +55 −14 resource/sites/www.agsvpt.com/config.json
  127. +65 −0 resource/sites/www.cathode-ray.tube/config.json
  128. +0 −90 resource/sites/www.cinematik.net/browse.js
  129. +53 −92 resource/sites/www.cinematik.net/config.json
  130. +0 −47 resource/sites/www.cinematik.net/details.js
  131. +0 −159 resource/sites/www.cinematik.net/getSearchResult.js
  132. +0 −127 resource/sites/www.cinematik.net/getUserSeedingTorrents.js
  133. +4 −0 resource/sites/www.empornium.is/config.json
  134. +116 −47 resource/sites/www.gaytor.rent/config.json
  135. +0 −87 resource/sites/www.gaytor.rent/getSearchResult.js
  136. +50 −0 resource/sites/www.happyfappy.org/config.json
  137. +5 −5 resource/sites/www.hdkyl.in/config.json
  138. +165 −165 resource/sites/www.icc2022.com/config.json
  139. +1 −0 resource/sites/www.morethantv.me/config.json
  140. +7 −7 resource/sites/www.okpt.net/config.json
  141. +0 −3 resource/sites/www.oshen.win/config.json
  142. +0 −223 resource/sites/www.ptlsp.com/config.json
  143. +10 −9 resource/sites/www.pttime.org/config.json
  144. +119 −0 resource/sites/www.ptzone.xyz/config.json
  145. +14 −3 resource/sites/www.skyey2.com/config.json
  146. +2 −1 resource/sites/www.torrentleech.org/config.json
  147. +408 −0 resource/sites/www.trancetraffic.com/config.json
  148. +272 −0 resource/sites/www.yemapt.org/config.json
  149. +110 −0 resource/sites/www.yemapt.org/getSearchResult.js
  150. +257 −0 resource/sites/x-ite.me/config.json
  151. +10 −0 resource/sites/xingtan.one/config.json
  152. +1,218 −0 resource/sites/xp.m-team.cc/common.js
  153. +463 −0 resource/sites/xp.m-team.cc/config.json
  154. +78 −0 resource/sites/xp.m-team.cc/details.js
  155. +183 −0 resource/sites/xp.m-team.cc/getSearchResult.js
  156. +104 −0 resource/sites/xp.m-team.cc/torrents.js
  157. +92 −2 src/background/config.ts
  158. +54 −10 src/background/controller.ts
  159. +58 −0 src/background/mediaServerManager.ts
  160. +5 −3 src/background/pageParser.ts
  161. +127 −0 src/background/plugins/Emby.ts
  162. +4 −4 src/background/plugins/OWSS.ts
  163. +20 −19 src/background/plugins/WebDAV.ts
  164. +86 −73 src/background/searcher.ts
  165. +183 −74 src/background/service.ts
  166. +34 −5 src/background/user.ts
  167. +7 −11 src/background/userData.ts
  168. +15 −5 src/content/index.ts
  169. +31 −3 src/interface/common.ts
  170. +21 −2 src/interface/enum.ts
  171. +31 −0 src/interface/types.expand.js
  172. +1 −2 src/options/App.vue
  173. +11 −3 src/options/components/DownloadTo.vue
  174. +234 −0 src/options/components/MediaServerInfoCard.vue
  175. +83 −79 src/options/components/MovieInfoCard.vue
  176. +7 −8 src/options/components/Navigation.vue
  177. +3 −2 src/options/components/Permissions.vue
  178. +69 −139 src/options/components/SearchBox.vue
  179. +3 −1 src/options/plugins/vuetify.ts
  180. +13 −0 src/options/router.ts
  181. +0 −13 src/options/shims-tsx.d.ts
  182. +69 −17 src/options/store.ts
  183. +2 −1 src/options/typings.d.ts
  184. +177 −7 src/options/views/History.vue
  185. +35 −22 src/options/views/Home.vue
  186. +6 −5 src/options/views/TechnologyStack.vue
  187. +3 −4 src/options/views/collection/GroupCard.vue
  188. +340 −0 src/options/views/mindMap/Index.vue
  189. +52 −0 src/options/views/mindMap/data.json
  190. +1 −0 src/options/views/mindMap/handDrawnLikeStyle.esm.min.js
  191. +1 −17 src/options/views/search/Actions.vue
  192. +29 −14 src/options/views/search/KeepUpload.vue
  193. +122 −56 src/options/views/search/SearchTorrent.ts
  194. +14 −5 src/options/views/search/SearchTorrent.vue
  195. +0 −1 src/options/views/settings/Backup/Server/Editor.vue
  196. +108 −263 src/options/views/settings/Base/Index.vue
  197. +11 −1 src/options/views/settings/DownloadClients/Editor.vue
  198. +73 −0 src/options/views/settings/MediaServers/Emby/Edit.vue
  199. +155 −0 src/options/views/settings/MediaServers/Emby/Editor.vue
  200. +244 −0 src/options/views/settings/MediaServers/Index.vue
  201. +1 −1 src/options/views/settings/SiteSearchEntry/Index.vue
  202. +5 −4 src/options/views/settings/Sites/Add.vue
  203. +50 −5 src/options/views/settings/Sites/Editor.vue
  204. +11 −1 src/options/views/settings/Sites/Index.vue
  205. +24 −12 src/options/views/statisticCharts/SiteBase.vue
  206. +33 −19 src/service/api.ts
  207. +6 −7 src/service/backupFileParser.ts
  208. +3 −1 src/service/extension.ts
  209. +6 −3 src/service/favicon.ts
  210. +11 −4 src/service/filters.ts
  211. +58 −9 src/service/movieInfoService.ts
  212. +85 −6 src/service/public.ts
  213. +2 −0 src/{options/shims-vue.d.ts → shims-env.d.ts}
  214. +5 −3 tsconfig.json
  215. +48 −0 vite.config.background.ts
  216. +33 −0 vite.config.content.ts
  217. +30 −0 vite.config.ts
  218. +283 −0 vite/buildResource.ts
  219. +0 −21 vue.config.js
  220. +0 −89 webpack/common.js
  221. +0 −30 webpack/dev-background.js
  222. +0 −15 webpack/dev-content.js
  223. +0 −45 webpack/prod-background.js
  224. +0 −14 webpack/prod-content.js
  225. +1,901 −8,413 yarn.lock
26 changes: 20 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jquery": true
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jquery": true
},
"root": true,
"extends": [
"plugin:vue/essential",
"eslint:recommended",
"@vue/typescript"
],
"rules": {
"no-console": 0
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2022,
"parser": "@typescript-eslint/parser"
}
}
}
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
35 changes: 13 additions & 22 deletions .github/workflows/build_action.yml
Original file line number Diff line number Diff line change
@@ -31,33 +31,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
fetch-depth: 0
fetch-depth: ${{ github.event_name == 'pull_request' && 1 || 0 }}

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'
cache: yarn

- name: Get yarn cache
id: yarn-cache
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn

- run: yarn build
continue-on-error: true

- name: Upload Built to action
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-dist-folder
path: dist
@@ -69,7 +60,7 @@ jobs:
outputs:
version: ${{ steps.zip.outputs.extensionVersion }}
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: build-dist-folder
path: dist
@@ -82,7 +73,7 @@ jobs:
zipFilePath: 'artifact/extension.zip'

- name: Upload Built Zip to action
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dev-build-${{ steps.zip.outputs.extensionVersion }}-zip
path: artifact/*
@@ -101,7 +92,7 @@ jobs:
USER_INPUT=${{ inputs.auto_update_file }}
echo "value=${USER_INPUT:-"stable.xml"}" >> $GITHUB_OUTPUT
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
env:
CRX_PRIVATE_KEY: ${{ secrets.CRX_PRIVATE_KEY }}
if: ${{ env.CRX_PRIVATE_KEY != '' }}
@@ -141,7 +132,7 @@ jobs:
env:
CRX_PRIVATE_KEY: ${{ secrets.CRX_PRIVATE_KEY }}
if: ${{ env.CRX_PRIVATE_KEY != '' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dev-build-${{ steps.zip.outputs.extensionVersion }}-crx
path: artifact/*
@@ -154,7 +145,7 @@ jobs:
outputs:
exist_xpi_file: ${{ steps.addonsDeploy.outcome }}
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: dev-build-${{ needs.zip.outputs.version }}-zip

@@ -173,7 +164,7 @@ jobs:
jwtSecret: ${{ secrets.FF_JWT_SECRET }}

- name: Upload Built Xpi to action
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ steps.addonsDeploy.outcome == 'success' }}
with:
name: dev-build-${{ needs.zip.outputs.version }}-xpi
14 changes: 6 additions & 8 deletions .github/workflows/build_canary.yml
Original file line number Diff line number Diff line change
@@ -35,15 +35,14 @@ jobs:
run: mkdir build

- name: Get And rename Zip build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name:
dev-build-${{ needs.action.outputs.version }}-zip
name: dev-build-${{ needs.action.outputs.version }}-zip

- run: mv extension.zip build/PT-Plugin-Plus-${{ needs.action.outputs.version }}.zip

- name: Get And remove Crx Build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name:
dev-build-${{ needs.action.outputs.version }}-crx
@@ -53,19 +52,18 @@ jobs:
mv extension.crx build/PT-Plugin-Plus-${{ needs.action.outputs.version }}.crx
- name: Get And move Xpi Build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
if: ${{ needs.action.outputs.buildXPI == 'success' }}
with:
name:
dev-build-${{ needs.action.outputs.version }}-xpi
name: dev-build-${{ needs.action.outputs.version }}-xpi

- if: ${{ needs.action.outputs.buildXPI == 'success' }}
run: |
mv extension.signed.xpi build/PT-Plugin-Plus-${{ needs.action.outputs.version }}.xpi
echo $(jq '.addons[].updates += [{"version": "${{ needs.action.outputs.version }}", "update_link": "https://github.com/pt-plugins/PT-Plugin-Plus/releases/download/v${{ needs.action.outputs.version }}/PT-Plugin-Plus-${{ needs.action.outputs.version }}.xpi"}]' pages/update/firefox.json) > pages/update/firefox.json
- name: Deploy update xml and json
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./pages
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>
@@ -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)
5 changes: 0 additions & 5 deletions debug/config/config.json

This file was deleted.

Loading