{"id":13569438,"url":"https://github.com/LeiShi1313/Differential","last_synced_at":"2025-04-04T05:32:52.279Z","repository":{"id":41982419,"uuid":"399025535","full_name":"LeiShi1313/Differential","owner":"LeiShi1313","description":"一个可以自动生成PTGen，MediaInfo/BDInfo，截图，并且生成发布所需内容的快速发种工具","archived":false,"fork":false,"pushed_at":"2024-03-26T13:21:29.000Z","size":104005,"stargazers_count":138,"open_issues_count":4,"forks_count":15,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-09-09T22:41:20.311Z","etag":null,"topics":["bdinfo","ffmpeg","mediainfo","pt","ptgen"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LeiShi1313.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-08-23T08:18:14.000Z","updated_at":"2024-08-03T19:05:55.000Z","dependencies_parsed_at":"2022-08-12T01:20:35.000Z","dependency_job_id":"c77a80bb-0051-46f6-8f67-62d3c0497d50","html_url":"https://github.com/LeiShi1313/Differential","commit_stats":{"total_commits":93,"total_committers":2,"mean_commits":46.5,"dds":"0.021505376344086002","last_synced_commit":"d3e22282c99471811c1933f337b4f3af6192a21d"},"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeiShi1313%2FDifferential","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeiShi1313%2FDifferential/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeiShi1313%2FDifferential/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeiShi1313%2FDifferential/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeiShi1313","download_url":"https://codeload.github.com/LeiShi1313/Differential/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223100124,"owners_count":17087387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bdinfo","ffmpeg","mediainfo","pt","ptgen"],"created_at":"2024-08-01T14:00:40.030Z","updated_at":"2025-04-04T05:32:52.259Z","avatar_url":"https://github.com/LeiShi1313.png","language":"Python","funding_links":[],"categories":["Upload"],"sub_categories":["Upload Semi-Auto"],"readme":"# Differential 差速器\n一个可以自动生成PTGen，MediaInfo，截图，并且生成发种所需内容的脚本\n\n\n# 为什么叫差速器\n差速器是汽车上的一种能使左、右轮胎以不同转速转动的结构。使用同样的动力输入，差速器能够输出不同的转速。就如同这个工具之于PT资源，差速器帮你使用同一份资源，输出不同PT站点需要的发种数据。\n\n# 差速器能做什么？\n当把大部分配置填好时，你可以仅提供资源文件的路径和一个豆瓣链接，差速器会帮你生成发种所需要的影片信息，Mediainfo，截图并上传图床，nfo文件，种子文件，并自动填写发种页面的表单（ 感谢树大的[脚本](https://github.com/techmovie/easy-upload)和明日大佬的[脚本](https://github.com/tomorrow505/auto_feed_js) ）\n\n![](./usage.gif)\n\n\n# 如何安装差速器\n\n\u003e 可以移步我的[博客](https://2cn.io/dft)查看详细的教程\n\u003e 也可以到[Telegram群组](https://t.me/ptdft)来讨论各种问题\n\n## Linux\n\n### 一键脚本安装\n对于`Debian 9+`/`Ubuntu 20.04+`/`Centos 8`/`Fedora 34+`/`Archlinux`，可以使用一键脚本安装\n```shell\ncurl -Lso- https://raw.githubusercontent.com/LeiShi1313/Differential/main/install.sh | bash\n```\n\n### 手动安装\n按照[这个](https://www.mono-project.com/download/stable/#download-lin)页面，安装Mono\n\n```shell\n# 安装ffmpeg和mediainfo\nsudo apt install ffmpeg mediainfo zlib1g-dev libjpeg-dev\npip3 install Differential\n```\n\n## Windows\n\n安装下载并安装Python和ffmpeg，然后把ffmpeg放到Path或者你的工作目录，确认在你的工作目录`ffmpeg.exe -version`有正确输出。\n\n```PowerShell\npip.exe install Differential\n```\n\n## Mac OS\n按照[这个](https://www.mono-project.com/docs/getting-started/install/mac/)页面，安装Mono\n\n```shell\n# 安装ffmpeg、mediainfo\nbrew install ffmpeg mediainfo\npip install Differential\n```\n\n# 如何使用差速器\n\n差速器支持未经过重大修改的NexusPHP/Gazelle/Unit3D站点以及部分支持[easy-upload](https://github.com/techmovie/easy-upload)和[auto_feed_js](https://github.com/tomorrow505/auto_feed_js)支持的站点。\n在使用前，请先使用`dft -h`查看本工具支持的站点/现有的插件。\n\n请先参考`config.ini.example`，在`Default`块填上各个站点/插件通用的参数，比如图床相关的几个参数，然后在各站点/插件名字对应的块填上各自特有的参数，比如截图张数等等。\n\n当配置文件完成后，你可以通过以下命令，一键获取发种所需要的信息。当然你也可以选择通过命令行来传递所有参数。\n```shell\ndft [插件名字] -f [种子文件夹] -u [豆瓣URL]\n```\n\n主要参数介绍：\n \n- `config`: 配置文件的位置，默认读取当前文件夹下的`config.ini`\n- `log`: log文件的路径\n- `folder`: 种子文件或文件夹的路径\n- `url`: 影片的豆瓣链接，事实上，所有PTGen支持的链接这里都支持\n- `upload_url`: 发种页面的地址\n- `make_torrent`: 是否制种，默认关闭\n- `geenrate_nfo`: 是否利用mediainfo生成nfo文件，默认关闭\n- `use_short_bdinfo`: 是否使用BDInfo的Quick Summary，默认使用完整的BDInfo\n- `screenshot_count`: 截图生成的张数，默认为0，即不生成截图\n- `image_hosting`: 图床的名称，现在支持ptpimg,chevereto,imgurl和SM.MS\n- `image_hosting_url`: 如果是自建的图床，提供图床链接\n- `ptgen_url`: PTGen的地址，默认是我自建的PTGen，可能会不稳定\n- `announce_url`: 制种时的announce地址\n- `encoder_log`: 压制log的地址，如果提供的话会在介绍的mediainfo部分附上压制log\n- `easy_upload`: 默认关闭，开启的话会利用[easy-upload](https://github.com/techmovie/easy-upload)自动填充发种页面表单\n- `auto_feed`: 默认关闭，开启的话会利用[auto_feed_js](https://github.com/tomorrow505/auto_feed_js)自动填充发种页面表单\n- `trim_description`: 默认关闭，开启的话会省略掉上传链接的描述部分，以避免链接过长浏览器无法打开的问题\n- `use_short_url`: 默认关闭，开启的话使用短链接服务把上传链接缩短\n\n## 其他插件\n\n为保护站点信息，请到[`plugins`](https://github.com/LeiShi1313/Differential/tree/main/differential/plugins)文件夹查看或者`dft [插件名称] -h`查看支持的参数\n\n\n# TODO\n- [ ] 更好的出错管理\n- [ ] PTGen API Key支持\n- [ ] imgbox支持\n- [x] 短网址服务\n- [x] 识别已经生成过的截图，不重复截图\n- [x] 支持扫描原盘BDInfo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeiShi1313%2FDifferential","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLeiShi1313%2FDifferential","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeiShi1313%2FDifferential/lists"}