Loading... [ ](https://www.bilibili.com/video/BV15P4y1u7j6/) # 2022.3.13.更新 我已经把flexget移植到了社区,现在,不需要使用custom-app了,但是需要手动添加一下依赖 ## 安装依赖 部署完成后,进入`config/custom-cont-init.d`,新建一个sh文件,里面写入 ``` #!/usr/bin/with-contenv bash pip install python-telegram-bot==12.8 pip install chardet pip install baidu-aip pip install pillow pip install pandas pip install matplotlib pip install fuzzywuzzy pip install python-Levenshtein pip install pyppeteer pip install pyppeteer_stealth ``` 保存即可 # 准备 先安装好qb [TrueNAS SCALE 安装TrueCharts社区QBittorrent并修改默认端口](https://www.truenasscale.com/2021/12/23/387.html) [TrueNAS SCALE社区应用设置指定网络接口,真正独立IP,实现bt分流,修复HomeKit](https://www.truenasscale.com/2022/01/16/500.html) # 安装flexget 先创建flexget的数据集  编辑权限  在flexget数据集里创建两个文件夹`config`和`data`   使用社区的custom app  Container Repository:madwind/flexget Container Tag:latest  PUID:568 PGID:568 FG_WEBUI_PASSWD:自己设置密码 FG_LOG_LEVEL:INFO       没有截图的地方默认 # 配置flexget ## 安装插件 **flexget_qbittorrent_mod** * 下载插件 [master](https://github.com/IvonWei/flexget_qbittorrent_mod/archive/refs/heads/master.zip) * 在Flexget的 config 文件夹下新建 plugins 文件夹 * 将所有的 .py 文件 与 ptsites 文件夹 解压至 plugins 下 * 重启flexget重新加载配置 **nexusphp** 把[nexusphp.py](https://github.com/Juszoe/flexget-nexusphp)复制到plugins里 ## 配置文件 访问flexget网页 点击config ``` variables: headers: user_agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36' templates: freespace: free_space: path: /test space: 10240 #检查磁盘空间如果只有10G了就停止种子RSS自动化下载 qb: qbittorrent: path: /downloads host: qb-qbittorrent.ix-qb.svc.cluster.local port: 10095 label: RSS username: admin password: admin qb_mod_base: qbittorrent_mod: host: qb-qbittorrent.ix-qb.svc.cluster.local port: 10095 use_ssl: no username: admin password: adminadmin qb_mod_add: qbittorrent_mod: action: add: category: RSS autoTMM: yes qb_mod_remove: qbittorrent_mod: action: remove: keeper: check_reseed: false delete_files: yes keep_disk_space: 2048 from_qbittorrent_template: from_qbittorrent_mod: &qbittorrent_setting host: qb-qbittorrent.ix-qb.svc.cluster.local port: 10095 #非https请设置为 no use_ssl: no username: admin password: adminadmin tasks: mt: rss: url: RSS URL other_fields: - link nexusphp: cookie: 'COOKIE' user-agent: '{? headers.user_agent ?}' comment: yes discount: - free seeders: min: 1 verify_ssl_certificates: no content_size: min: 10240 # 文件小于 2048M 就不下载 max: 999900 # 文件大于 9999M 就不下载 strict: no template: - qb - qb_mod_base - qb_mod_add - freespace delete: priority: 3 #官方插件:disable 关闭任务记录 失败重试 disable: [ seen, seen_info_hash, retry_failed, history ] #官方插件: if 过滤器 if: #参考entry属性列表 #种子在 Rss分类 并且 最后活动时间 < 2天 - qbittorrent_category in ['RSS'] and qbittorrent_last_activity < now - timedelta(days=2): accept #官方sort_by插件:按最后活动时间从早到晚排序 优先删除 sort_by: qbittorrent_last_activity template: - from_qbittorrent_template - qb_mod_base - qb_mod_remove web_server: bind: 0.0.0.0 port: 3539 web_ui: yes schedules: - tasks: [delete] interval: minutes: 30 - tasks: 'mt' interval: days: 1 ``` ## 常用命令 点击应用的三个点,命令行  * `flexget check` : 用于检查 `config.yml` 配置文件是否有格式错误。 * `flexget --test execute` : 手动模拟一次 RSS 操作,仅供测试,不会下载种子文件到本地。 * `flexget execute` : 手动执行所有任务 * `flexget execute --tasks Series-*`: 手动执行指定的任务 * `flexget status` : 查看 flexget 的 RSS 记录。 * `flexget execute --learn` : 这样子不会下载种子,但是会把这次 RSS 到的种子标记为已下载,这样之后就不会下到老种了 参考: [flexget-nexusphp](https://github.com/Juszoe/flexget-nexusphp) [flexget](https://flexget.com/Configuration) [如何优雅地刷 PT](https://blog.dov.moe/posts/27725/) [flexget_qbittorrent_mod](https://github.com/madwind/flexget_qbittorrent_mod) 最后修改:2022 年 06 月 02 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 2 如果觉得我的文章对你有用,请随意赞赏
4 条评论
大佬知道这是怎么回事么:
------------------------------------- cont-init: info: /etc/cont-init.d/10-adduser exited 0 cont-init: info: running /etc/cont-init.d/15-install-pkg cont-init: info: /etc/cont-init.d/15-install-pkg exited 0 cont-init: info: running /etc/cont-init.d/20-config *** Using existing config.yml *** Setting flexget web password Updated password *** Flexget v3.3.25 ready! cont-init: info: /etc/cont-init.d/20-config exited 0 cont-init: info: running /etc/cont-init.d/90-custom-folders cont-init: info: /etc/cont-init.d/90-custom-folders exited 0 cont-init: info: running /etc/cont-init.d/99-custom-files [custom-init] no custom files found, skipping... cont-init: info: /etc/cont-init.d/99-custom-files exited 0 s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service init-mods: starting s6-rc: info: service init-mods successfully started s6-rc: info: service init-mods-package-install: starting s6-rc: info: service init-mods-package-install successfully started s6-rc: info: service init-mods-end: starting s6-rc: info: service init-mods-end successfully started s6-rc: info: service init-services: starting s6-rc: info: service init-services successfully started s6-rc: info: service legacy-services: starting services-up: info: copying legacy longrun flexget (no readiness notification) s6-rc: info: service legacy-services successfully started s6-rc: info: service 99-ci-service-check: starting [ls.io-init] done. s6-rc: info: service 99-ci-service-check successfully started [services.d] executing => flexget -c /config/config.yml --loglevel info --logfile flexget.log daemon start --autoreload-config 2022-09-04 13:05:19 INFO web_server_daemon Running web server at IP 0.0.0.0:5050 2022-09-04 13:05:19 INFO web_server_daemon Initiating API 2022-09-04 13:05:19 INFO web_server_daemon Registering WebUI v2 2022-09-04 13:05:19 INFO scheduler Starting scheduler 2022-09-04 13:05:19 INFO web_server Web server started at http://172.17.0.5:5050 2022-09-04 13:05:19 INFO web_server API available at http://172.17.0.5:5050/api 2022-09-04 13:05:19 INFO web_server WebUI (v2) available at http://172.17.0.5:5050/ 2022-09-04 13:19:20 INFO remember_rej Remembering rejection of `[Sports体育]US Open 2022 Round 3 03 09 2022 Andy Murray vs Matteo Berrettini 1080p WEB-DL AAC2.0 H.264-playWEB[美国网球公开赛2022赛季 / 第三轮 / 2022-09-03 / 安迪穆雷 vs 贝雷蒂尼 /][9.50 GB]` 2022-09-04 13:19:20 CRITICAL plugin HDDolby The rss plugin require 'other_fields' which contain 'link'. For example: other_fields: - link 2022-09-04 13:19:20 WARNING task HDDolby Aborting task (plugin: nexusphp) 2022-09-04 13:27:42 INFO manager Running database cleanup. 2022-09-04 13:27:42 INFO db_analyze Running ANALYZE on database to improve performance. 2022-09-04 13:39:20 INFO remember_rej Remembering rejection of `[Sports体育]US Open 2022 Round 3 03 09 2022 Andy Murray vs Matteo Berrettini 1080p WEB-DL AAC2.0 H.264-playWEB[美国网球公开赛2022赛季 / 第三轮 / 2022-09-03 / 安迪穆雷 vs 贝雷蒂尼 /][9.50 GB]` 2022-09-04 13:39:21 CRITICAL plugin HDDolby The rss plugin require 'other_fields' which contain 'link'. For example: other_fields: - link 2022-09-04 13:39:21 WARNING task HDDolby Aborting task (plugin: nexusphp) 2022-09-04 13:59:20 INFO remember_rej Remembering rejection of `[Sports体育]US Open 2022 Round 3 03 09 2022 Andy Murray vs Matteo Berrettini 1080p WEB-DL AAC2.0 H.264-playWEB[美国网球公开赛2022赛季 / 第三轮 / 2022-09-03 / 安迪穆雷 vs 贝雷蒂尼 /][9.50 GB]` 2022-09-04 13:59:21 CRITICAL plugin HDDolby The rss plugin require 'other_fields' which contain 'link'. For example: other_fields: - link 2022-09-04 13:59:21 WARNING task HDDolby Aborting task (plugin: nexusphp) 2022-09-04 14:19:23 INFO remember_rej Remembering rejection of `[Sports体育]US Open 2022 Round 3 03 09 2022 Andy Murray vs Matteo Berrettini 1080p WEB-DL AAC2.0 H.264-playWEB[美国网球公开赛2022赛季 / 第三轮 / 2022-09-03 / 安迪穆雷 vs 贝雷蒂尼 /][9.50 GB]` 2022-09-04 14:19:23 CRITICAL plugin HDDolby The rss plugin require 'other_fields' which contain 'link'. For example: other_fields: - link 2022-09-04 14:19:23 WARNING task HDDolby Aborting task (plugin: nexusphp) 2022-09-04 14:39:36 CRITICAL plugin HDDolby The rss plugin require 'other_fields' which contain 'link'. For example: other_fields: - link 2022-09-04 14:39:36 WARNING task HDDolby Aborting task (plugin: nexusphp) 2022-09-04 14:59:20 CRITICAL plugin HDDolby The rss plugin require 'other_fields' which contain 'link'. For example: other_fields: - link 2022-09-04 14:59:20 WARNING task HDDolby Aborting task (plugin: nexusphp) 2022-09-04 15:19:15 INFO remember_rej Remembering rejection of `[Animations动漫]Minions: The Rise of Gru 2022 2160p USA UHD Blu-ray HEVC TrueHD Atmos 7.1-PEGASUS[小黄人大眼萌:神偷奶爸前传/小小兵2:格鲁的崛起(台)/小小兵Ⅱ(台)/迷你兵团Ⅱ(港) [4K UHD美版原盘]][87.56 GB]` 2022-09-04 15:19:21 CRITICAL plugin HDDolby The rss plugin require 'other_fields' which contain 'link'. For example: other_fields: - link 2022-09-04 15:19:21 WARNING task HDDolby Aborting task (plugin: nexusphp) 2022-09-04 15:39:16 INFO remember_rej Remembering rejection of `[Animations动漫]Minions: The Rise of Gru 2022 2160p USA UHD Blu-ray HEVC TrueHD Atmos 7.1-PEGASUS[小黄人大眼萌:神偷奶爸前传/小小兵2:格鲁的崛起(台)/小小兵Ⅱ(台)/迷你兵团Ⅱ(港) [4K UHD美版原盘]][87.56 GB]` 2022-09-04 15:39:22 CRITICAL plugin HDDolby The rss plugin require 'other_fields' which contain 'link'. For example: other_fields: - link 2022-09-04 15:39:22 WARNING task HDDolby Aborting task (plugin: nexusphp) 2022-09-04 15:59:16 INFO remember_rej Remembering rejection of `[Sports体育]UFC Fight Night 209 Gane vs Tuivasa 03 09 2022 1080i HDTV MPA2.0 H.264-playTV[终极格斗冠军赛 2022 / 2022-09-03 / 盖恩 VS 图瓦萨 / 罗马尼亚语解说][11.51 GB]` 2022-09-04 15:59:17 INFO remember_rej Remembering rejection of `[Animations动漫]Minions: The Rise of Gru 2022 2160p USA UHD Blu-ray HEVC TrueHD Atmos 7.1-PEGASUS[小黄人大眼萌:神偷奶爸前传/小小兵2:格鲁的崛起(台)/小小兵Ⅱ(台)/迷你兵团Ⅱ(港) [4K UHD美版原盘]][87.56 GB]` 2022-09-04 15:59:22 CRITICAL plugin HDDolby The rss plugin require 'other_fields' which contain 'link'. For example: other_fields: - link 2022-09-04 15:59:22 WARNING task HDDolby Aborting task (plugin: nexusphp) 2022-09-04 16:19:16 INFO remember_rej Remembering rejection of `[Sports体育]UFC Fight Night 209 Gane vs Tuivasa 03 09 2022 1080i HDTV MPA2.0 H.264-playTV[终极格斗冠军赛 2022 / 2022-09-03 / 盖恩 VS 图瓦萨 / 罗马尼亚语解说][11.51 GB]` 2022-09-04 16:19:16 INFO remember_rej Remembering rejection of `[Animations动漫]Minions: The Rise of Gru 2022 2160p USA UHD Blu-ray HEVC TrueHD Atmos 7.1-PEGASUS[小黄人大眼萌:神偷奶爸前传/小小兵2:格鲁的崛起(台)/小小兵Ⅱ(台)/迷你兵团Ⅱ(港) [4K UHD美版原盘]][87.56 GB]` 2022-09-04 16:19:22 CRITICAL plugin HDDolby The rss plugin require 'other_fields' which contain 'link'. For example: other_fields: - link 2022-09-04 16:19:22 WARNING task HDDolby Aborting task (plugin: nexusphp) 2022-09-04 16:39:16 INFO remember_rej Remembering rejection of `[TV Series电视剧]The Greed of Man 1992 1080p WEB-DL H.264 AAC[大时代 全40集 国语版 | 主演: 郑少秋 刘青云 周慧敏 郭蔼明 李丽珍][68.65 GB]` 2022-09-04 16:39:18 INFO remember_rej Remembering rejection of `[Sports体育]UFC Fight Night 209 Gane vs Tuivasa 03 09 2022 1080i HDTV MPA2.0 H.264-playTV[终极格斗冠军赛 2022 / 2022-09-03 / 盖恩 VS 图瓦萨 / 罗马尼亚语解说][11.51 GB]` 2022-09-04 16:39:18 INFO remember_rej Remembering rejection of `[Animations动漫]Minions: The Rise of Gru 2022 2160p USA UHD Blu-ray HEVC TrueHD Atmos 7.1-PEGASUS[小黄人大眼萌:神偷奶爸前传/小小兵2:格鲁的崛起(台)/小小兵Ⅱ(台)/迷你兵团Ⅱ(港) [4K UHD美版原盘]][87.56 GB]` 2022-09-04 16:39:24 CRITICAL plugin HDDolby The rss plugin require 'other_fields' which contain 'link'. For example: other_fields: - link 2022-09-04 16:39:24 WARNING task HDDolby Aborting task (plugin: nexusphp) 2022-09-04 16:59:11 INFO manager Config change detected. Reloading. 2022-09-04 16:59:11 INFO manager Config successfully reloaded! 2022-09-04 16:59:16 INFO remember_rej Remembering rejection of `[TV Series电视剧]The Greed of Man 1992 1080p WEB-DL H.264 AAC[大时代 全40集 国语版 | 主演: 郑少秋 刘青云 周慧敏 郭蔼明 李丽珍][68.65 GB]` 2022-09-04 16:59:18 INFO remember_rej Remembering rejection of `[Sports体育]UFC Fight Night 209 Gane vs Tuivasa 03 09 2022 1080i HDTV MPA2.0 H.264-playTV[终极格斗冠军赛 2022 / 2022-09-03 / 盖恩 VS 图瓦萨 / 罗马尼亚语解说][11.51 GB]` 2022-09-04 16:59:18 INFO remember_rej Remembering rejection of `[Animations动漫]Minions: The Rise of Gru 2022 2160p USA UHD Blu-ray HEVC TrueHD Atmos 7.1-PEGASUS[小黄人大眼萌:神偷奶爸前传/小小兵2:格鲁的崛起(台)/小小兵Ⅱ(台)/迷你兵团Ⅱ(港) [4K UHD美版原盘]][87.56 GB]` 2022-09-04 16:59:24 CRITICAL plugin HDDolby The rss plugin require 'other_fields' which contain 'link'. For example: other_fields: - link 2022-09-04 16:59:24 WARNING task HDDolby Aborting task (plugin: nexusphp) 2022-09-04 17:19:15 INFO remember_rej Remembering rejection of `[TV Series电视剧]The Greed of Man 1992 1080p WEB-DL H.264 AAC[大时代 全40集 国语版 | 主演: 郑少秋 刘青云 周慧敏 郭蔼明 李丽珍][68.65 GB]` 2022-09-04 17:19:18 INFO remember_rej Remembering rejection of `[Sports体育]UFC Fight Night 209 Gane vs Tuivasa 03 09 2022 1080i HDTV MPA2.0 H.264-playTV[终极格斗冠军赛 2022 / 2022-09-03 / 盖恩 VS 图瓦萨 / 罗马尼亚语解说][11.51 GB]` 2022-09-04 17:19:19 INFO remember_rej Remembering rejection of `[Animations动漫]Minions: The Rise of Gru 2022 2160p USA UHD Blu-ray HEVC TrueHD Atmos 7.1-PEGASUS[小黄人大眼萌:神偷奶爸前传/小小兵2:格鲁的崛起(台)/小小兵Ⅱ(台)/迷你兵团Ⅱ(港) [4K UHD美版原盘]][87.56 GB]` 2022-09-04 17:19:24 CRITICAL plugin HDDolby The rss plugin require 'other_fields' which contain 'link'. For example: other_fields: - link 2022-09-04 17:19:24 WARNING task HDDolby Aborting task (plugin: nexusphp) 2022-09-04 17:39:15 INFO remember_rej Remembering rejection of `[Movies电影]Zhen Cha Bing 1974 1080p WEB-DL H.264 AAC-OurTV[侦察兵 | 主演: 王心刚 金征源 王达成 国语无字*BesTV高码*][4.18 GB]` 2022-09-04 17:39:15 INFO remember_rej Remembering rejection of `[TV Series电视剧]The Greed of Man 1992 1080p WEB-DL H.264 AAC[大时代 全40集 国语版 | 主演: 郑少秋 刘青云 周慧敏 郭蔼明 李丽珍][68.65 GB]` 2022-09-04 17:39:18 INFO remember_rej Remembering rejection of `[Sports体育]UFC Fight Night 209 Gane vs Tuivasa 03 09 2022 1080i HDTV MPA2.0 H.264-playTV[终极格斗冠军赛 2022 / 2022-09-03 / 盖恩 VS 图瓦萨 / 罗马尼亚语解说][11.51 GB]` 2022-09-04 17:39:18 INFO remember_rej Remembering rejection of `[Animations动漫]Minions: The Rise of Gru 2022 2160p USA UHD Blu-ray HEVC TrueHD Atmos 7.1-PEGASUS[小黄人大眼萌:神偷奶爸前传/小小兵2:格鲁的崛起(台)/小小兵Ⅱ(台)/迷你兵团Ⅱ(港) [4K UHD美版原盘]][87.56 GB]` 2022-09-04 17:39:24 CRITICAL plugin HDDolby The rss plugin require 'other_fields' which contain 'link'. For example: other_fields: - link 2022-09-04 17:39:24 WARNING task HDDolby Aborting task (plugin: nexusphp) 2022-09-04 17:59:16 INFO remember_rej Remembering rejection of `[Movies电影]Zhen Cha Bing 1974 1080p WEB-DL H.264 AAC-OurTV[侦察兵 | 主演: 王心刚 金征源 王达成 国语无字*BesTV高码*][4.18 GB]` 2022-09-04 17:59:17 INFO remember_rej Remembering rejection of `[TV Series电视剧]The Greed of Man 1992 1080p WEB-DL H.264 AAC[大时代 全40集 国语版 | 主演: 郑少秋 刘青云 周慧敏 郭蔼明 李丽珍][68.65 GB]` 2022-09-04 17:59:20 INFO remember_rej Remembering rejection of `[Sports体育]UFC Fight Night 209 Gane vs Tuivasa 03 09 2022 1080i HDTV MPA2.0 H.264-playTV[终极格斗冠军赛 2022 / 2022-09-03 / 盖恩 VS 图瓦萨 / 罗马尼亚语解说][11.51 GB]` 2022-09-04 17:59:20 INFO remember_rej Remembering rejection of `[Animations动漫]Minions: The Rise of Gru 2022 2160p USA UHD Blu-ray HEVC TrueHD Atmos 7.1-PEGASUS[小黄人大眼萌:神偷奶爸前传/小小兵2:格鲁的崛起(台)/小小兵Ⅱ(台)/迷你兵团Ⅱ(港) [4K UHD美版原盘]][87.56 GB]` 2022-09-04 17:59:26 CRITICAL plugin HDDolby The rss plugin require 'other_fields' which contain 'link'. For example: other_fields: - link 2022-09-04 17:59:26 WARNING task HDDolby Aborting task (plugin: nexusphp)请教下,qb.sh脚本运行失败,查看了下日志,是python的依赖安装不成功
容器可能有点bug
感恩。跪谢