• Stars
    star
    110
  • Rank 314,941 (Top 7 %)
  • Language
    Python
  • License
    MIT License
  • Created about 3 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

一个可以自动生成PTGen,MediaInfo/BDInfo,截图,并且生成发布所需内容的快速发种工具

Differential 差速器

一个可以自动生成PTGen,MediaInfo,截图,并且生成发种所需内容的脚本

为什么叫差速器

差速器是汽车上的一种能使左、右轮胎以不同转速转动的结构。使用同样的动力输入,差速器能够输出不同的转速。就如同这个工具之于PT资源,差速器帮你使用同一份资源,输出不同PT站点需要的发种数据。

差速器能做什么?

当把大部分配置填好时,你可以仅提供资源文件的路径和一个豆瓣链接,差速器会帮你生成发种所需要的影片信息,Mediainfo,截图并上传图床,nfo文件,种子文件,并自动填写发种页面的表单( 感谢树大的脚本和明日大佬的脚本

如何安装差速器

可以移步我的博客查看详细的教程 也可以到Telegram群组来讨论各种问题

Linux

一键脚本安装

对于Debian 9+/Ubuntu 20.04+/Centos 8/Fedora 34+/Archlinux,可以使用一键脚本安装

curl -Lso- https://raw.githubusercontent.com/LeiShi1313/Differential/main/install.sh | bash

手动安装

按照这个页面,安装Mono

# 安装ffmpeg和mediainfo
sudo apt install ffmpeg mediainfo zlib1g-dev libjpeg-dev
pip3 install Differential

Windows

安装下载并安装Python和ffmpeg,然后把ffmpeg放到Path或者你的工作目录,确认在你的工作目录ffmpeg.exe -version有正确输出。

pip.exe install Differential

Mac OS

按照这个页面,安装Mono

# 安装ffmpeg、mediainfo
brew install ffmpeg mediainfo
pip install Differential

如何使用差速器

差速器支持未经过重大修改的NexusPHP/Gazelle/Unit3D站点以及部分支持easy-uploadauto_feed_js支持的站点。 在使用前,请先使用dft -h查看本工具支持的站点/现有的插件。

请先参考config.ini.example,在Default块填上各个站点/插件通用的参数,比如图床相关的几个参数,然后在各站点/插件名字对应的块填上各自特有的参数,比如截图张数等等。

当配置文件完成后,你可以通过以下命令,一键获取发种所需要的信息。当然你也可以选择通过命令行来传递所有参数。

dft [插件名字] -f [种子文件夹] -u [豆瓣URL]

主要参数介绍:

  • config: 配置文件的位置,默认读取当前文件夹下的config.ini
  • log: log文件的路径
  • folder: 种子文件或文件夹的路径
  • url: 影片的豆瓣链接,事实上,所有PTGen支持的链接这里都支持
  • upload_url: 发种页面的地址
  • make_torrent: 是否制种,默认关闭
  • geenrate_nfo: 是否利用mediainfo生成nfo文件,默认关闭
  • use_short_bdinfo: 是否使用BDInfo的Quick Summary,默认使用完整的BDInfo
  • screenshot_count: 截图生成的张数,默认为0,即不生成截图
  • image_hosting: 图床的名称,现在支持ptpimg,chevereto,imgurl和SM.MS
  • image_hosting_url: 如果是自建的图床,提供图床链接
  • ptgen_url: PTGen的地址,默认是我自建的PTGen,可能会不稳定
  • announce_url: 制种时的announce地址
  • encoder_log: 压制log的地址,如果提供的话会在介绍的mediainfo部分附上压制log
  • easy_upload: 默认关闭,开启的话会利用easy-upload自动填充发种页面表单
  • auto_feed: 默认关闭,开启的话会利用auto_feed_js自动填充发种页面表单
  • trim_description: 默认关闭,开启的话会省略掉上传链接的描述部分,以避免链接过长浏览器无法打开的问题
  • use_short_url: 默认关闭,开启的话使用短链接服务把上传链接缩短

其他插件

为保护站点信息,请到plugins文件夹查看或者dft [插件名称] -h查看支持的参数

TODO

  • 更好的出错管理
  • PTGen API Key支持
  • imgbox支持
  • 短网址服务
  • 识别已经生成过的截图,不重复截图
  • 支持扫描原盘BDInfo

More Repositories

1

genshin-aritifact-analyzer

原神圣遗物潜力分析平台
JavaScript
91
star
2

serverless-web-differ

A serverless web browser which crawls websites and compares pages by schedule.
Python
61
star
3

Company-Portfolio-Template

A React.js website design for company profile
HTML
56
star
4

downloader-exporter

A prometheus exporter for torrent downloader like qbittorrent/transmission/deluge
Python
42
star
5

scf-headless-chrome

Headless chrome running on tencent serverless cloud function.
Python
30
star
6

TeleFire

A set of useful command line tools to interact with telegram using telethon and python-fire.
Python
21
star
7

nexusphp-docker-compose

docker-compose for https://github.com/xiaomlove/nexusphp
PHP
9
star
8

docker-composes

Personal docker-compose configs
7
star
9

flexget-plugins

Some flexget plugins
Python
5
star
10

ss-to-clash

Convert ss links to clash config
Python
4
star
11

cloudflare-redirect-worker

A cloudflare worker that can redirect to websites by your defined routes
JavaScript
4
star
12

just-some-scripts

Just some scripts.
Python
3
star
13

Cryptocurrency-Portfolio-API

Combined some of the bitcoin exchanges Restful Api
TypeScript
3
star
14

Cryptocurrency-Portfolio-Web

A integration website for managing your digital assets
TypeScript
3
star
15

Cryptocurrency-Portfolio-App

The electron app of Cryptocurrency Portfolio project
JavaScript
2
star
16

Shifter

A shifter for all your BT clients.
Svelte
1
star
17

leetcode

My solutions for leetcode.
C++
1
star
18

vim_config

My vim configuration
Vim Script
1
star
19

btree

Database course project, implementation of B+ tree
C++
1
star
20

mautrix-wechat

A Matrix-Wechat puppeting bridge, based on https://github.com/ChisBread/wechat-box
Python
1
star