differential

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

https://github.com/leishi1313/differential

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.4%) to scientific vocabulary

Keywords

bdinfo ffmpeg mediainfo pt ptgen

Keywords from Contributors

interactive serializer packaging network-simulation shellcodes hacking autograding observability genomics embedded
Last synced: 6 months ago · JSON representation

Repository

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

Basic Info
  • Host: GitHub
  • Owner: LeiShi1313
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 99.4 MB
Statistics
  • Stars: 163
  • Watchers: 3
  • Forks: 17
  • Open Issues: 4
  • Releases: 51
Topics
bdinfo ffmpeg mediainfo pt ptgen
Created over 4 years ago · Last pushed 7 months ago
Metadata Files
Readme License

README.md

Differential 差速器

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

为什么叫差速器

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

差速器能做什么?

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

如何安装差速器

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

Linux

一键脚本安装

对于Debian 9+/Ubuntu 20.04+/Centos 8/Fedora 34+/Archlinux,可以使用一键脚本安装 shell curl -Lso- https://raw.githubusercontent.com/LeiShi1313/Differential/main/install.sh | bash

手动安装

按照这个页面,安装Mono

```shell

安装ffmpeg和mediainfo

sudo apt install ffmpeg mediainfo zlib1g-dev libjpeg-dev pip3 install Differential ```

Windows

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

PowerShell pip.exe install Differential

Mac OS

按照这个页面,安装Mono

```shell

安装ffmpeg、mediainfo

brew install ffmpeg mediainfo pipx pipx ensurepath pipx install Differential ```

Docker

shell docker pull leishi1313:differential docker run --rm -v [你的媒体文件夹]:[媒体文件夹路径] -v ./config.ini:/app/config.ini leishi1313:differential dft -h

如何使用差速器

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

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

当配置文件完成后,你可以通过以下命令,一键获取发种所需要的信息。当然你也可以选择通过命令行来传递所有参数。 shell 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: 默认关闭,开启的话会利用autofeedjs自动填充发种页面表单
  • trim_description: 默认关闭,开启的话会省略掉上传链接的描述部分,以避免链接过长浏览器无法打开的问题
  • use_short_url: 默认关闭,开启的话使用短链接服务把上传链接缩短

其他插件

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

支持的图

目前支持以下图床:

  • ptpimg: 适用于PTP等站点,需注册账号获取API Key。

  • hdbits: 适用于HDB等站点

  • chevereto: 支持自建Chevereto图床,需提供图床URL和API信息。

  • imgurl: 支持imgurl自建图床,需提供相关API信息。

  • SM.MS: 免费公共图床,支持API上传。

  • imgbox: 免费图床.

  • LKSY: 支持兰空LSKY Pro自建图床,可使用API Token或者邮箱密码验证

如需使用自建图床,请在配置文件中填写image_hosting_url等相关参数。

TODO

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

Owner

  • Name: Lei Shi
  • Login: LeiShi1313
  • Kind: user
  • Location: Switzerland

咸鱼一个

GitHub Events

Total
  • Create event: 5
  • Release event: 5
  • Issues event: 2
  • Watch event: 22
  • Push event: 6
  • Fork event: 4
Last Year
  • Create event: 5
  • Release event: 5
  • Issues event: 2
  • Watch event: 22
  • Push event: 6
  • Fork event: 4

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 98
  • Total Committers: 2
  • Avg Commits per committer: 49.0
  • Development Distribution Score (DDS): 0.02
Past Year
  • Commits: 5
  • Committers: 1
  • Avg Commits per committer: 5.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Lei Shi me@l****o 96
dependabot[bot] 4****] 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 9
  • Total pull requests: 2
  • Average time to close issues: 7 months
  • Average time to close pull requests: about 14 hours
  • Total issue authors: 6
  • Total pull request authors: 1
  • Average comments per issue: 0.56
  • Average comments per pull request: 0.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 2
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • LeiShi1313 (4)
  • happy124578 (1)
  • GaryLz (1)
  • 362227 (1)
  • dongshuyan (1)
  • SMooxx (1)
Pull Request Authors
  • dependabot[bot] (2)
Top Labels
Issue Labels
bug (3) enhancement (2)
Pull Request Labels
dependencies (2)

Dependencies

requirements.txt pypi
  • Pillow ==9.0.1
  • bencode.py ==4.0.0
  • loguru ==0.5.3
  • lxml ==4.7.1
  • pymediainfo ==5.1.0
  • requests *
  • torf ==3.1.3
setup.py pypi
  • Pillow >=8.0.0
  • bencode.py ==4.0.0
  • loguru >=0.5.0
  • lxml >=4.0.0
  • pymediainfo >=5.0
  • requests *
  • torf >=3.0.0