{"id":13569491,"url":"https://github.com/rachpt/AutoSeed","last_synced_at":"2025-04-04T05:33:01.483Z","repository":{"id":134510731,"uuid":"133770602","full_name":"rachpt/AutoSeed","owner":"rachpt","description":"全自动发种姬 [流程图 https://www.processon.com/view/link/5c088855e4b0ca4b40c93a49 ]","archived":false,"fork":false,"pushed_at":"2020-02-28T08:55:35.000Z","size":6716,"stargazers_count":237,"open_issues_count":3,"forks_count":40,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-02T14:06:39.016Z","etag":null,"topics":["shell"],"latest_commit_sha":null,"homepage":"https://rachpt.cn/AutoSeed/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rachpt.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":"2018-05-17T06:43:32.000Z","updated_at":"2024-07-28T03:11:20.000Z","dependencies_parsed_at":"2023-06-17T00:15:26.418Z","dependency_job_id":null,"html_url":"https://github.com/rachpt/AutoSeed","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rachpt%2FAutoSeed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rachpt%2FAutoSeed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rachpt%2FAutoSeed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rachpt%2FAutoSeed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rachpt","download_url":"https://codeload.github.com/rachpt/AutoSeed/tar.gz/refs/heads/master","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":["shell"],"created_at":"2024-08-01T14:00:40.686Z","updated_at":"2024-11-05T01:32:41.550Z","avatar_url":"https://github.com/rachpt.png","language":"Shell","funding_links":[],"categories":["Upload"],"sub_categories":["Upload Bot"],"readme":"# AutoSeed\n\nAn Autoseed used to reseed Movies in PT sites powered by shell scripts. Get a python version [HERE](https://github.com/Rhilip/Pt-Autoseed).\n\n目前适用于 从 HDS / TTG / HDC / CMCT / MTeam 等站点自动转载 电影、剧集、纪录片 [针对 iPad 资源特别优化] 至 HUDBT / WHU / NPUPT / NYPT / BYRBT / TJUPT。\n\n[![release](https://img.shields.io/badge/Version-3.1-brightgreen.svg)](https://github.com/rachpt/AutoSeed/releases/tag/v3.1)  [![GitHub license](https://img.shields.io/badge/license-AGPL-blue.svg)](https://raw.githubusercontent.com/rachpt/AutoSeed/master/LICENSE)\n\n|  源站点（from）  | 支持站点（to） | 时间（time） |\n| :--------------: | :------------: | :----------: |\n| hds | hudbt |  2018-05-19  |\n| ttg  | whu |  2018-05-21  |\n| hdc | npupt |  2018-06-07 |\n| cmct | nypt | 2018-06-07 |\n| mteam | byrbt | 2018-06-17 |\n|       | cmct  | 2018-07-28 |\n|       | tjupt | 2018-08-28 |\n| 不限\\*  |     | 2018-10-23 |\n\n\\* 源站点表示支持抓取其部分简介用于发布，没有则本地生成简介.\n\n## 特点\n\n - 自动生成并提交简介，与原种简介尽量一致。\n - 自动设置做种时间与分享率、清理旧种子、硬盘容量释放。\n - 速度快，使用临时文件提前生成简介，使用多线程提速。\n - 开箱即用，不需要使用数据库等复杂操作。\n - 支持自动 Dupe 以及禁转判断。\n - 支持多项自定义规则优化任务。\n - 总的来说，几乎全自动。 \n\n\n## 环境要求\n\n- GNU/Linux（ubuntu 18.04 lts、archLinux、centos7 测试通过）。\n- 软件：\n  - transmission-daemon，transmission-remote，transmission-show，transmission-edit；\n  - qBittorrent v4.1+，(使用该客户端须安装transmission-show,edit！)； \n  - httpie 0.9.8+，用于和web服务器通讯；\n  - mediainfo，[mtn](http://moviethumbnail.sourceforge.net/)(非必须) 用于本地生成info信息;\n  - ffmpeg，用于本地生成缩略图(配合mediainfo);\n  - 其他常用软件工具，sed，grep，awk等(详见 setting.sh，一般系统自带)；\n  - 默认先使用`python3`本地解析豆瓣简介，感谢 [@Rhilip](https://github.com/Rhilip/PT-help/blob/master/modules/infogen/gen.py) 的脚本，(Python相关依赖requests,bs4,html2bbcode)；\n  - curl，备用下载工具;\n  - unrar、[dottorrent](https://github.com/kz26/dottorrent)，解压0day分卷资源。\n\n- ubuntu 系安装\n  ```sh\n  sudo apt install transmission-daemon \\\n    transmission-cli qbittorrent(or nox) \\\n    httpie mediainfo python3 ffmpeg\n  sudo pip3 install requests bs4 html2bbcode\n  ``` \n- arch 系安装\n  ```sh\n  sudo pacman -Sy transmsiion-cli \\\n    qbittorrent(or nox) httpie mediainfo \\\n    python python-pip ffmpeg\n  sudo pacman -Sy python-requests python-beautifulsoup4 \n  # 不要通过 pip 安装上面两个库到系统\n  sudo pip3 install html2bbcode \n  ```\n- centos 安装\n  ```sh\n  sudo yum -y install transmission-cli \\\n    transmission-common transmission-daemon \\\n    qbittorrent(or nox) httpie mediainfo \\\n    python python-pip ffmpeg\n  sudo pip3 install install requests bs4 html2bbcode\n  ```\n\n## 使用方法\n\n1. clone 本 repo (或者下载 zip) 至本地，请使用最新的版本；\n2. 修改设置文件`setting.sh`(包括cookie、passkey，监控 torrent 文件路径等)；\n3. 使用 transmission **订阅源种**，添加 `main.sh` 路径至 `script-torrent-done-filename`，具体见 [这里](https://rachpt.github.io/2018/03/25/transmission-settings/) ；\n5. 使用 qbittorrent **订阅源种**，添加如 `/home/AutoSeed/main.sh \"%N\" \"%D\"` 所示代码至`完成时运行外部程序`处；  \n   3、4只能选其一，目前只能使用一个客户端订阅源种；\n6. (推荐)将 `main.sh` 添加到  `crontab` 周期运行(运行锁会解决各种问题)，以提前生成简介；\n7. 调试请看 test.sh 中的说明。\n\n详细请看[WIKI](https://github.com/rachpt/AutoSeed/wiki)。\n\n*其他：*\n\n请使用 flexget 订阅下载，transmission 使用 [transmissionrpc](https://flexget.com/Plugins/transmission) 将源种传入，qbittorrent 使用 flexget 的 qbittorrent 模块。  \n `crontab` 运行参考命令 `*/5 * * * * /home/AutoSeed/main.sh \u003e/dev/null 2\u003e\u00261`。  \nubuntu 用户注意使用 bash 运行而非系统默认的 dash!  \npython 并非必须，只需将 `setting.sh` 中的`Use_Local_Gen='yes'`改为其他值，则使用基于 [web](https://rhilip.github.io/PT-help/ptgen) 的生成方法，当然本地解析失败时，也会尝试使用web方法生成。\n\n\n## 更新日志\n\n- 2019-02-18 --\u003e 3.1\n  - 修复几处 bug。\n  - 新增使用 ffmpeg 生成缩略图。\n  - 新增自定义豆瓣链接匹配规则。\n  - 新增特定资源的单独发布规则。\n  - 完善多处细节，比如解决 WiKi 美剧 imdb 固定为第一季情况，添加备用图床等。\n\n- 2018-12-19 --\u003e 3.0 (release)\n  - 完善clean模块，部分功能使用多线程。\n  - 新的qbittorrent分享率设置实现。\n  - 代码稳定性增强。\n\n- 2018-12-08 --\u003e 3.0 (开发版,几乎完成)\n  - 重构几乎全部代码，以支持更多的站点。\n  - 使用豆瓣简介，尽量保留原始 iNFO 以及 screens，没有则生成。\n  - 添加对 qbittorrent 的支持，目前 clean、edit 模块还未重构。\n  - 主体稳定性正在测试...\n\n- 2018-10-23 --\u003e 3.0 (开发版,未完成)\n  - 重构部分代码，以支持更多的站点。\n  - 使用豆瓣豆瓣，尽量保留原始 iNFO 以及 screens，没有则生成。\n  - 目前修改了'get_desc'，以及部分 'post'，其他正在修改中……\n\n## 实现流程\n\n[点击查看](https://www.processon.com/view/link/5c088855e4b0ca4b40c93a49)\n\n## License\n\n[GPL-3.0](https://github.com/rachpt/AutoSeed/blob/master/LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frachpt%2FAutoSeed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frachpt%2FAutoSeed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frachpt%2FAutoSeed/lists"}