您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
easy seeding for different trackers
当前为
支持国内外主流PT站的转载种子脚本,尽可能减少不必要的重复工作,让发种更易上手。
npm run build
新建用户脚本,然后将@require
下的文件路径改为项目所在目录。
// ==UserScript==
// @name Debug
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @require https://cdn.bootcss.com/jquery/1.7.1/jquery.min.js
// @match https://passthepopcorn.me/torrents.php?id=*
// @match http*://*/details.php?id=*
// @match https://totheglory.im/t/*
// @match https://beyond-hd.me/torrents/*
// @match https://lemonhd.org/upload_*
// @match https://lemonhd.org/details*
// @match https://blutopia.xyz/torrents/*
// @match https://blutopia.xyz/torrents?imdb=*
// @match https://blutopia.xyz/upload/*
// @match http*://*/upload*
// @require file:///Users/USER_NAME/../easy-seed/.cache/easy-seed.user.js
// @grant GM_addStyle
// @grant GM_xmlhttpRequest
// ==/UserScript==
(function() {
'use strict';
// Your code here...
})();
npm run dev
在配置文件中,比较复杂的是目标站点的相关配置,以HDHome的配置为例,说明一下具体的配置规则。在进行站点配置时需要遵循以下几个原则。
category
、videoType
、videoCodec
、audioCodec
、source
、 resolution
。电影 Remux
就是category和videoType混合在一起的一个例子。其他属性的话一般都比较明确,可以跟规范数据中定义的属性直接进行匹配。但是也有特殊的情况,category可以直接匹配,但是videoType是多个属性混合在一起,比如BHD。这个时候需要将category和videoType的值进行对调。后续筛选的话都是默认对category进行筛选。Movies UHD Blu-ray
和Movies 2160p
这两个值加入数组内。因为这两个分类的视频分辨率就是2160P。其他属性的配置也是同理,直到可以互相取交集取到唯一的分类为止。selector
属性,只需要配置map即可。map里遵循的原则同上一条。 HDHome:
url: 'https://hdhome.org'
host: hdhome.org
siteType: NexusPHP
asSource: false
asTarget: true
uploadPath: /upload.php
searchPath: /torrents.php
searchKey: search
searchParam:
search_area: '{key}'
sort: '5'
type: desc
# 标题
name:
# 对应输入框或下拉选择框的选择器
selector: '#name'
# 副标题
subtitle:
selector: 'input[name="small_descr"]'
# 简介
description:
selector: '#descr'
# imdb地址
imdb:
selector: 'input[name="url"][type="text"]'
# 豆瓣地址 没有的站点可以省略
douban:
selector: 'input[name="douban_id"]'
# 是否匿名发布
anonymous:
selector: 'input[name="uplver"]'
# 标签checkbox
tags:
chineseAudio: '#tag_gy'
DIY: '#tag_diy'
cantoneseAudio: '#tag_yy'
chineseSubtitle: '#tag_zz'
HDR: '#tag_hdr10'
HDR10+: '#tag_hdrm'
DolbyVision: '#tag_db'
# 分类,电影剧集等
category:
selector: '#browsecat'
map:
movie:
- '411'
- '412'
tv:
- '425'
- '426'
tvPack:
- '432'
- '433'
documentary:
- '417'
- '418'
concert: '441'
sport:
- '442'
- '443'
cartoon:
- '444'
- '445'
variety: []
# 视频编码
videoCodec:
selector: 'select[name="codec_sel"]'
map:
h264: '1'
hevc: '12'
x264: '1'
x265: '2'
h265: '2'
mpeg2: '4'
mpeg4:
- '5'
- '412'
- '418'
- '426'
- '433'
- '445'
vc1: '3'
xvid: '5'
dvd: '5'
# 视频来源
source:
selector: 'select[name="source_sel"]'
map:
uhdbluray: '9'
bluray: '1'
hdtv: '4'
dvd: '3'
web: '7'
vhs: '8'
hddvd: '8'
# 音频编码
audioCodec:
selector: 'select[name="audiocodec_sel"]'
map:
aac: '6'
ac3: '15'
dd: '15'
dd+: '15'
dts: '3'
truehd: '13'
lpcm: '14'
dtshdma: '11'
atmos: '12'
dtsx: '17'
# 视频类型 主要为以下几种类型
videoType:
selector: 'select[name="medium_sel"]'
map:
uhdbluray:
- '10'
- '499'
bluray:
- '1'
- '450'
remux:
- '3'
- '415'
encode:
- '7'
- '411'
web:
- '11'
- '411'
hdtv:
- '5'
- '412'
- '413'
dvd:
- ''
- '411'
dvdrip:
- '7'
- '411'
other: ''
# 分辨率
resolution:
selector: 'select[name="standard_sel"]'
map:
2160p:
- '1'
- '499'
- '416'
1080p:
- '2'
- '414'
1080i:
- '3'
- '424'
720p:
- '4'
- '413'
576p:
- '5'
- '411'
480p:
- '5'
- '411'