Giter Club home page Giter Club logo

flexget_qbittorrent_mod's Introduction

flexget_qbittorrent_mod

为qBittorrent用户打造的FlexGet插件,支持删种/辅种/筛选免费种子/自动签到等功能


前言

这原本是一个 Flexget 的 qBittorrent插件,因为懒得开新项目,已经变成大杂烩了

这个大杂烩是为了实现我自己需求的全自动化,只为能用就好,并没有想着朝简单易用的方向发展。

类似项目

如果以下项目已经完全够用了,就不需要往下看了,PT吧内有很详尽的教程。用复杂的方式解决简单的需求并不值得。

功能

提问须知

对插件使用有任何疑问以及建议,或者汇报本程序的任何Bug 欢迎使用以下联系方式和我们交流

联系方式

口令: 115599

但是 在提问前你需要了解以下知识

  • 基础的 yaml 语法知识
  • 了解FlexGet订阅的基础用法
  • 清楚自己需要什么功能
  • 已经完整阅读 Wiki

flexget_qbittorrent_mod's People

Contributors

bright-w avatar luyiming avatar madwind avatar mnixry avatar vivodi avatar zenof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

flexget_qbittorrent_mod's Issues

启动报错

/volume1/@appstore/py3k/usr/local/bin/flexget/bin/flexget daemon start -d

2020-01-30 00:17 CRITICAL plugin Exception while loading plugin flexget.plugins.qbittorrent_mod
Traceback (most recent call last):
File "/volume1/@appstore/py3k/usr/local/bin/flexget/lib/python3.5/site-packages/flexget/plugin.py", line 434, in _import_plugin
import_module(module_name)
File "/volume1/@appstore/py3k/usr/local/bin/flexget/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "", line 658, in exec_module
File "", line 764, in get_code
File "", line 724, in source_to_code
File "", line 222, in _call_with_frames_removed
File "/root/.config/flexget/plugins/qbittorrent_mod.py", line 305
name_with_pieces_hashes = f'{name}:{pieces_hashes}'
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "/volume1/@appstore/py3k/usr/local/bin/flexget/bin/flexget", line 8, in
sys.exit(main())
File "/volume1/@appstore/py3k/usr/local/bin/flexget/lib/python3.5/site-packages/flexget/init.py", line 47, in main
manager.start()
File "/volume1/@appstore/py3k/usr/local/bin/flexget/lib/python3.5/site-packages/flexget/manager.py", line 399, in start
self.initialize()
File "/volume1/@appstore/py3k/usr/local/bin/flexget/lib/python3.5/site-packages/flexget/manager.py", line 236, in initialize
extra_components=[os.path.join(self.config_base, 'components')],
File "/volume1/@appstore/py3k/usr/local/bin/flexget/lib/python3.5/site-packages/flexget/plugin.py", line 561, in load_plugins
_load_plugins_from_dirs(extra_plugins)
File "/volume1/@appstore/py3k/usr/local/bin/flexget/lib/python3.5/site-packages/flexget/plugin.py", line 481, in _load_plugins_from_dirs
_import_plugin(module_name, plugin_path)
File "/volume1/@appstore/py3k/usr/local/bin/flexget/lib/python3.5/site-packages/flexget/plugin.py", line 434, in _import_plugin
import_module(module_name)
File "/volume1/@appstore/py3k/usr/local/bin/flexget/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "", line 658, in exec_module
File "", line 764, in get_code
File "", line 724, in source_to_code
File "", line 222, in _call_with_frames_removed
File "/root/.config/flexget/plugins/qbittorrent_mod.py", line 305
name_with_pieces_hashes = f'{name}:{pieces_hashes}'
^
SyntaxError: invalid syntax

作者删除功能可以设置分类吗?

qbittorrent_delete_keeper_template:
这个里面好像没有分类功能
如果不用check_reseed:这个进行检查的话,会导致所有的旧种子都被删除吗?
后的自动删种带分类,但是不带删除文件的功能,qbittorrent_delete_keeper_template
我希望可以自动删除指定分类里面的种子及文件,这个功能有没有办法实现?求教

flexget 启动加载插件报错 Plugin `flexget.plugins.telegram_mod` failed to import dependencies

环境是群晖docker和wiserain/flexget最新镜像

2021-06-03 19:44:31 DEBUG manager Config file /config/config.yml selected
2021-06-03 19:44:31 DEBUG manager sys.defaultencoding: utf-8
2021-06-03 19:44:31 DEBUG manager sys.getfilesystemencoding: utf-8
2021-06-03 19:44:31 DEBUG manager flexget detected io encoding: utf-8
2021-06-03 19:44:31 DEBUG manager os.path.supports_unicode_filenames: False
2021-06-03 19:44:31 DEBUG plugin Trying to load plugins from: ['/config/plugins', '/usr/lib/python3.8/site-packages/flexget/plugins']
2021-06-03 19:44:31 CRITICAL plugin Plugin flexget.plugins.telegram_mod failed to import dependencies
Traceback (most recent call last):

File "/usr/bin/flexget", line 8, in
sys.exit(main())
│ │ └ <function main at 0x7f48805fa9d0>
│ └
└ <module 'sys' (built-in)>
File "/usr/lib/python3.8/site-packages/flexget/init.py", line 44, in main
manager.start()
│ └ <function Manager.start at 0x7f487d91a040>
└ <flexget.manager.Manager object at 0x7f487d905e20>
File "/usr/lib/python3.8/site-packages/flexget/manager.py", line 383, in start
self.initialize()
│ └ <function Manager.initialize at 0x7f487d915dc0>
└ <flexget.manager.Manager object at 0x7f487d905e20>
File "/usr/lib/python3.8/site-packages/flexget/manager.py", line 223, in initialize
plugin.load_plugins(
│ └ <function load_plugins at 0x7f487dd363a0>
└ <module 'flexget.plugin' from '/usr/lib/python3.8/site-packages/flexget/plugin.py'>
File "/usr/lib/python3.8/site-packages/flexget/plugin.py", line 550, in load_plugins
_load_plugins_from_dirs(extra_plugins)
│ └ ['/config/plugins', '/usr/lib/python3.8/site-packages/flexget/plugins']
└ <function _load_plugins_from_dirs at 0x7f487dd361f0>
File "/usr/lib/python3.8/site-packages/flexget/plugin.py", line 468, in _load_plugins_from_dirs
_import_plugin(module_name, plugin_path)
│ │ └ PosixPath('/config/plugins/telegram_mod.py')
│ └ 'flexget.plugins.telegram_mod'
└ <function _import_plugin at 0x7f487dd36160>

File "/usr/lib/python3.8/site-packages/flexget/plugin.py", line 419, in _import_plugin
import_module(module_name)
│ └ 'flexget.plugins.telegram_mod'
└ <function import_module at 0x7f48806f5790>
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
│ │ │ │ │ └ 0
│ │ │ │ └ None
│ │ │ └ 0
│ │ └ 'flexget.plugins.telegram_mod'
│ └ <function _gcd_import at 0x7f48808a4430>
└ <module 'importlib._bootstrap' (frozen)>
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 848, in exec_module
File "", line 219, in _call_with_frames_removed

File "/config/plugins/telegram_mod.py", line 3, in
from PIL import Image

ModuleNotFoundError: No module named 'PIL'
2021-06-03 19:44:31 ERROR flexget.plugins.ptsites.utils.cfscrapewrapper Error importing pyppeteer: No module named 'pyppeteer'
2021-06-03 19:44:31 CRITICAL plugin Plugin flexget.plugins.auto_sign_in failed to import dependencies
Traceback (most recent call last):

File "/usr/bin/flexget", line 8, in
sys.exit(main())
│ │ └ <function main at 0x7f48805fa9d0>
│ └
└ <module 'sys' (built-in)>
File "/usr/lib/python3.8/site-packages/flexget/init.py", line 44, in main
manager.start()
│ └ <function Manager.start at 0x7f487d91a040>
└ <flexget.manager.Manager object at 0x7f487d905e20>
File "/usr/lib/python3.8/site-packages/flexget/manager.py", line 383, in start
self.initialize()
│ └ <function Manager.initialize at 0x7f487d915dc0>
└ <flexget.manager.Manager object at 0x7f487d905e20>
File "/usr/lib/python3.8/site-packages/flexget/manager.py", line 223, in initialize
plugin.load_plugins(
│ └ <function load_plugins at 0x7f487dd363a0>
└ <module 'flexget.plugin' from '/usr/lib/python3.8/site-packages/flexget/plugin.py'>
File "/usr/lib/python3.8/site-packages/flexget/plugin.py", line 550, in load_plugins
_load_plugins_from_dirs(extra_plugins)
│ └ ['/config/plugins', '/usr/lib/python3.8/site-packages/flexget/plugins']
└ <function _load_plugins_from_dirs at 0x7f487dd361f0>
File "/usr/lib/python3.8/site-packages/flexget/plugin.py", line 468, in _load_plugins_from_dirs
_import_plugin(module_name, plugin_path)
│ │ └ PosixPath('/config/plugins/auto_sign_in.py')
│ └ 'flexget.plugins.auto_sign_in'
└ <function _import_plugin at 0x7f487dd36160>

File "/usr/lib/python3.8/site-packages/flexget/plugin.py", line 419, in _import_plugin
import_module(module_name)
│ └ 'flexget.plugins.auto_sign_in'
└ <function import_module at 0x7f48806f5790>
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
│ │ │ │ │ └ 0
│ │ │ │ └ None
│ │ │ └ 0
│ │ └ 'flexget.plugins.auto_sign_in'
│ └ <function _gcd_import at 0x7f48808a4430>
└ <module 'importlib._bootstrap' (frozen)>
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 848, in exec_module
File "", line 219, in _call_with_frames_removed

File "/config/plugins/auto_sign_in.py", line 9, in
from .ptsites.utils.details_report import DetailsReport

File "/config/plugins/ptsites/utils/details_report.py", line 4, in
from PIL import Image, ImageDraw, ImageFont

ModuleNotFoundError: No module named 'PIL'
2021-06-03 19:44:31 INFO flexget.plugins.ptsites._version flexget_qbittorrent_mod v0.8.8_dev
2021-06-03 19:44:31 CRITICAL plugin Plugin flexget.plugins.ptsites.utils.details_report failed to import dependencies
Traceback (most recent call last):

File "/usr/bin/flexget", line 8, in
sys.exit(main())
│ │ └ <function main at 0x7f48805fa9d0>
│ └
└ <module 'sys' (built-in)>
File "/usr/lib/python3.8/site-packages/flexget/init.py", line 44, in main
manager.start()
│ └ <function Manager.start at 0x7f487d91a040>
└ <flexget.manager.Manager object at 0x7f487d905e20>
File "/usr/lib/python3.8/site-packages/flexget/manager.py", line 383, in start
self.initialize()
│ └ <function Manager.initialize at 0x7f487d915dc0>
└ <flexget.manager.Manager object at 0x7f487d905e20>
File "/usr/lib/python3.8/site-packages/flexget/manager.py", line 223, in initialize
plugin.load_plugins(
│ └ <function load_plugins at 0x7f487dd363a0>
└ <module 'flexget.plugin' from '/usr/lib/python3.8/site-packages/flexget/plugin.py'>
File "/usr/lib/python3.8/site-packages/flexget/plugin.py", line 550, in load_plugins
_load_plugins_from_dirs(extra_plugins)
│ └ ['/config/plugins', '/usr/lib/python3.8/site-packages/flexget/plugins']
└ <function _load_plugins_from_dirs at 0x7f487dd361f0>
File "/usr/lib/python3.8/site-packages/flexget/plugin.py", line 468, in _load_plugins_from_dirs
_import_plugin(module_name, plugin_path)
│ │ └ PosixPath('/config/plugins/ptsites/utils/details_report.py')
│ └ 'flexget.plugins.ptsites.utils.details_report'
└ <function _import_plugin at 0x7f487dd36160>

File "/usr/lib/python3.8/site-packages/flexget/plugin.py", line 419, in _import_plugin
import_module(module_name)
│ └ 'flexget.plugins.ptsites.utils.details_report'
└ <function import_module at 0x7f48806f5790>
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
│ │ │ │ │ └ 0
│ │ │ │ └ None
│ │ │ └ 0
│ │ └ 'flexget.plugins.ptsites.utils.details_report'
│ └ <function _gcd_import at 0x7f48808a4430>
└ <module 'importlib._bootstrap' (frozen)>
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 848, in exec_module
File "", line 219, in _call_with_frames_removed

File "/config/plugins/ptsites/utils/details_report.py", line 4, in
from PIL import Image, ImageDraw, ImageFont

ModuleNotFoundError: No module named 'PIL'
2021-06-03 19:44:31 CRITICAL plugin Plugin flexget.plugins.ptsites.utils.dmhy_image failed to import dependencies
Traceback (most recent call last):

File "/usr/bin/flexget", line 8, in
sys.exit(main())
│ │ └ <function main at 0x7f48805fa9d0>
│ └
└ <module 'sys' (built-in)>
File "/usr/lib/python3.8/site-packages/flexget/init.py", line 44, in main
manager.start()
│ └ <function Manager.start at 0x7f487d91a040>
└ <flexget.manager.Manager object at 0x7f487d905e20>
File "/usr/lib/python3.8/site-packages/flexget/manager.py", line 383, in start
self.initialize()
│ └ <function Manager.initialize at 0x7f487d915dc0>
└ <flexget.manager.Manager object at 0x7f487d905e20>
File "/usr/lib/python3.8/site-packages/flexget/manager.py", line 223, in initialize
plugin.load_plugins(
│ └ <function load_plugins at 0x7f487dd363a0>
└ <module 'flexget.plugin' from '/usr/lib/python3.8/site-packages/flexget/plugin.py'>
File "/usr/lib/python3.8/site-packages/flexget/plugin.py", line 550, in load_plugins
_load_plugins_from_dirs(extra_plugins)
│ └ ['/config/plugins', '/usr/lib/python3.8/site-packages/flexget/plugins']
└ <function _load_plugins_from_dirs at 0x7f487dd361f0>
File "/usr/lib/python3.8/site-packages/flexget/plugin.py", line 468, in _load_plugins_from_dirs
_import_plugin(module_name, plugin_path)
│ │ └ PosixPath('/config/plugins/ptsites/utils/dmhy_image.py')
│ └ 'flexget.plugins.ptsites.utils.dmhy_image'
└ <function _import_plugin at 0x7f487dd36160>

File "/usr/lib/python3.8/site-packages/flexget/plugin.py", line 419, in _import_plugin
import_module(module_name)
│ └ 'flexget.plugins.ptsites.utils.dmhy_image'
└ <function import_module at 0x7f48806f5790>
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
│ │ │ │ │ └ 0
│ │ │ │ └ None
│ │ │ └ 0
│ │ └ 'flexget.plugins.ptsites.utils.dmhy_image'
│ └ <function _gcd_import at 0x7f48808a4430>
└ <module 'importlib._bootstrap' (frozen)>
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 848, in exec_module
File "", line 219, in _call_with_frames_removed

File "/config/plugins/ptsites/utils/dmhy_image.py", line 1, in
from PIL import ImageChops, Image

ModuleNotFoundError: No module named 'PIL'
2021-06-03 19:44:31 CRITICAL plugin Plugin flexget.plugins.ptsites.sites.dmhy failed to import dependencies
Traceback (most recent call last):

File "/usr/bin/flexget", line 8, in
sys.exit(main())
│ │ └ <function main at 0x7f48805fa9d0>
│ └
└ <module 'sys' (built-in)>
File "/usr/lib/python3.8/site-packages/flexget/init.py", line 44, in main
manager.start()
│ └ <function Manager.start at 0x7f487d91a040>
└ <flexget.manager.Manager object at 0x7f487d905e20>
File "/usr/lib/python3.8/site-packages/flexget/manager.py", line 383, in start
self.initialize()
│ └ <function Manager.initialize at 0x7f487d915dc0>
└ <flexget.manager.Manager object at 0x7f487d905e20>
File "/usr/lib/python3.8/site-packages/flexget/manager.py", line 223, in initialize
plugin.load_plugins(
│ └ <function load_plugins at 0x7f487dd363a0>
└ <module 'flexget.plugin' from '/usr/lib/python3.8/site-packages/flexget/plugin.py'>
File "/usr/lib/python3.8/site-packages/flexget/plugin.py", line 550, in load_plugins
_load_plugins_from_dirs(extra_plugins)
│ └ ['/config/plugins', '/usr/lib/python3.8/site-packages/flexget/plugins']
└ <function _load_plugins_from_dirs at 0x7f487dd361f0>
File "/usr/lib/python3.8/site-packages/flexget/plugin.py", line 468, in _load_plugins_from_dirs
_import_plugin(module_name, plugin_path)
│ │ └ PosixPath('/config/plugins/ptsites/sites/dmhy.py')
│ └ 'flexget.plugins.ptsites.sites.dmhy'
└ <function _import_plugin at 0x7f487dd36160>

File "/usr/lib/python3.8/site-packages/flexget/plugin.py", line 419, in _import_plugin
import_module(module_name)
│ └ 'flexget.plugins.ptsites.sites.dmhy'
└ <function import_module at 0x7f48806f5790>
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
│ │ │ │ │ └ 0
│ │ │ │ └ None
│ │ │ └ 0
│ │ └ 'flexget.plugins.ptsites.sites.dmhy'
│ └ <function _gcd_import at 0x7f48808a4430>
└ <module 'importlib._bootstrap' (frozen)>
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 848, in exec_module
File "", line 219, in _call_with_frames_removed

File "/config/plugins/ptsites/sites/dmhy.py", line 21, in
from ..utils.dmhy_image import DmhyImage

File "/config/plugins/ptsites/utils/dmhy_image.py", line 1, in
from PIL import ImageChops, Image

ModuleNotFoundError: No module named 'PIL'

尝试在容器内手动安装pillow 报错 main.RequiredDependencyException: zlib

自动签到插件运行报错

使用Chrome浏览器 并使用F12 - Network 获取的Cookies

签到torrentleech站点时
疑似url复写出错 报错内容如下:

2020-10-25 04:14:43 WARNING  urlrewriter   sign_in         URL rewriting was left in infinite loop while rewriting url for <Entry(title=torrentleech 2020-10-25,state=accepted)>, some rewriter is returning always True
2020-10-25 04:14:43 ERROR    entry         sign_in         Failed torrentleech 2020-10-25 (None)
2020-10-25 04:14:43 INFO     task          sign_in         Plugin retry_failed has requested task to be ran again after execution has completed.
2020-10-25 04:14:43 VERBOSE  task          sign_in         FAILED: `torrentleech 2020-10-25` by urlrewriting plugin
2020-10-25 04:14:43 VERBOSE  details       sign_in         Summary - Accepted: 1 (Rejected: 0 Undecided: 0 Failed: 1)

顺便想问一下 是否是因为这个出错导致了改任务重新执行了一次?

签到报错

车pt签到报错response.state_code=403
空报错IAM Certification fails
麻烦看看这两个站点是不是不能签到?
另外是不是也不支持套?

u2 btschool登陆报错

1: btschool 2021-04-29 Reason: Details=> detail: points not found.
2: dmhy 2021-04-29 Reason: Sign_in=> Can not build_data

2021-04-29 22:12:13 VERBOSE task sign_in REJECTED: btschool 2021-04-29 by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Details=> detail: points not found.)
2021-04-29 22:12:13 VERBOSE task sign_in REJECTED: dmhy 2021-04-29 by retry_failed plugin because waiting before retrying entry which has failed in the past. (failure reason: Sign_in=> Can not build_data)

2021-04-29 22:12:07 INFO flexget.plugins.ptsites.sites.dmhy original_ocr:
2021-04-29 22:12:07 DEBUG entry Marking entry 'dmhy 2021-04-29' as failed
2021-04-29 22:12:07 ERROR entry Failed dmhy 2021-04-29 (Sign_in=> Can not build_data)
2021-04-29 22:12:07 DEBUG failed Marking dmhy 2021-04-29 in failed list. Has failed 1 times.
2021-04-29 22:12:07 DEBUG backlog Saving dmhy 2021-04-29
2021-04-29 22:12:07 DEBUG task Plugin retry_failed has requested task to be ran again after execution has completed.
2021-04-29 22:12:07 VERBOSE task FAILED: dmhy 2021-04-29 by auto_sign_in plugin because sign_in=> Can not build_data

2021-04-29 22:11:54 DEBUG entry Marking entry 'btschool 2021-04-29' as failed
2021-04-29 22:11:54 ERROR entry Failed btschool 2021-04-29 (Details=> detail: points not found.)
2021-04-29 22:11:54 DEBUG failed Marking btschool 2021-04-29 in failed list. Has failed 1 times.
2021-04-29 22:11:54 DEBUG backlog Saving btschool 2021-04-29
2021-04-29 22:11:54 INFO task Plugin retry_failed has requested task to be ran again after execution has completed.
2021-04-29 22:11:54 VERBOSE task FAILED: btschool 2021-04-29 by auto_sign_in plugin because details=> detail: points not found.

自动签到报错

自动签到报错是什么原因?
'Entry' object has no attribute 'fail_with_prefix'ix'

请教一下下载路径怎么设置

大佬,请教一下,在task里设置download,提示BUG: Unhandled error in plugin qbittorrent_mod: local variable 'download' referenced before assignment
要怎么解决呢?

将新的cookie或新的bearer token回写至config.yml

目前的问题

有的网站在cookie即将到期的时候,会种下新的cookie或新的bearer token从而避免登录到期。但是本程序运行时无法保存种下的新cookie或bearer token。而有时适配密码登录是不可行的,阻碍包括但不限于复杂的验证码(如reCAPTCHA)和cf盾(项目中的那个过盾组件好像目前过不了盾)。

可能的实现方法

如果发现网站种下新的cookie或bearer token,将其回写至config.yml中。

对不需要签到的站点,直接访问个人详情页从而避免非必要的网页爬取

目前的问题

目前,对无签到任务的站点在生成用户数据时会先访问主页,然后在主页中通过正则匹配找到个人详情页的UID,然后再访问个人详情页。事实上,可以直接访问个人详情页,在生成用户数据时直接使用 base_content 即可,从而省去了访问主页与正则匹配。

可能的实现方法

方法1

由使用者将UID填写到 config.yml 中。
优点:程序实现较简单。
缺点:使用不便;有兼容性问题,用户的config.yml需要重新编写。

方法2(推荐)

程序首次运行后将UID回写至 config.ymldb-config.sqlite 中。
优点:使用方便。
缺点:尚不清楚回写至 config.ymldb-config.sqlite 怎么实现。

大佬, telegram推送拿不到chat id要怎么办...

配置如下, 容器里有pysocks

via:
          - telegram_mod:
              bot_token: xxxx:xxxx
              image: 'details_report.png'
              recipients:
                - username: 'xxxx'
              socks_proxy:
                url: socks5://172.17.0.1:1080

也给bot说过话了, 但还是报错no chat id found, try manually sending the bot any message to initialize the chat...

在容器里curl telegram的api是能正常推送内容到bot的...

{
"ok":true,
"result":
{"message_id":1120,"from":{"id":xxx,"is_bot":true,"first_name":"Bot","username":"xxxx_bot"},
"chat":
{"id":xxxx,"first_name":"xxxx","type":"private"},"date":xxxx,"text":"HelloWorld"}
}

之前同样的配置跑了两个多月...都没有问题...正常推送...

尝试调试一些小站的时候把数据库清掉了...

然后就没法推送了...

提交bug:新版本更新后,flexget无法打开了。

错误提示:Plugin flexget.plugins.auto_sign_in failed to import dependencies
ModuleNotFoundError: No module named 'ptsites'
2020-06-22 17:16:00 CRITICAL manager [/tasks/reseed] The key iyuu_auto_reseed is not valid here. Only known plugin names are valid keys.
2020-06-22 17:16:00 CRITICAL manager [/tasks/opencd] The key html_rss is not valid here. Only known plugin names are valid keys.
2020-06-22 17:16:00 CRITICAL manager [/tasks/sign_in] The key auto_sign_in is not valid here. Only known plugin names are valid keys.
2020-06-22 17:16:00 CRITICAL manager Failed to load config file: Did not pass schema validation.
现在找不到之前的版本了,

dmhy签到失败

Failed dmhy 2022-07-27 (Sign_in=> Network error: url: https://u2.dmhy.org/showup.php?action=show, error: HTTPSConnectionPool(host='u2.dmhy.org', port=443): Max retries exceeded with url: /showup.php?action=show (Caused by ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))))

请问这是什么原因导致的?
还有就是u2的username是填用户名还是邮箱?现在登录用的是邮箱

安装提示错误

具体错误:Error response from daemon: invalid mode: /downloads.
安装命令行
docker run -d
--name=flexget
--restart always
-p 3539:3539
-v G:\downloads:/downloads
-v D:\Docker\flexget\config:/config
-e PUID=1000
-e PGID=1000
-e TZ=Asia/Shanghai
-e FG_WEBUI_PASSWD=MEDBq4faQK6$%WYr
madwind/flexget

flexget 3.1.135 疑似和mod不兼容了

之前的docker镜像都正常build使用,今天更新了一波之后 config报错 auto_sign_in不是支持的插件
上一个能正常使用的flexget版本是 3.1.134

TG消息推送报错 no chat id found

大佬你好。
LOG中显示:no chat id found, try manually sending the bot any message to initialize the chat
也给机器人发过消息,但是依然报错。

配置如下:
- telegram_mod:
bot_token: '5****:*****' #这个是用的 bot father 回传的 bot token
#发送统计图片
image: 'details_report.png'
recipients:
- username: '113****111' #这个用的 userinfobot 上回传的 接收人账号ID,也试过 直接用TG上 用户名,也一样报错

签到报错 sign_in BUG: Unhandled error in plugin auto_sign_in: could not convert string to float: '-'

docker 部署的最新版本 madwind/flexget
插件也是最新版本

签到报错

CRITICAL
task
sign_in
BUG: Unhandled error in plugin auto_sign_in: could not convert string to float: '-'

错误log如下

2022-10-10 08:57:07 CRITICAL task          sign_in         BUG: Unhandled error in plugin auto_sign_in: could not convert string to float: '-'
Traceback (most recent call last):

  File "/usr/local/lib/python3.10/threading.py", line 973, in _bootstrap
    self._bootstrap_inner()
    │    └ <function Thread._bootstrap_inner at 0x1523eb405870>
    └ <Thread(task_queue, started daemon 23243655075584)>
  File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
    │    └ <function Thread.run at 0x1523eb4055a0>
    └ <Thread(task_queue, started daemon 23243655075584)>
  File "/usr/local/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
    │    │        │    │        │    └ {}
    │    │        │    │        └ <Thread(task_queue, started daemon 23243655075584)>
    │    │        │    └ ()
    │    │        └ <Thread(task_queue, started daemon 23243655075584)>
    │    └ <bound method TaskQueue.run of <flexget.task_queue.TaskQueue object at 0x1523d7c522c0>>
    └ <Thread(task_queue, started daemon 23243655075584)>
  File "/usr/local/lib/python3.10/site-packages/flexget/task_queue.py", line 47, in run
    self.current_task.execute()
    │    │            └ <function Task.execute at 0x1523e81e4a60>
    │    └ <flexget.task.Task object at 0x1523d5791f90>
    └ <flexget.task_queue.TaskQueue object at 0x1523d7c522c0>
  File "/usr/local/lib/python3.10/site-packages/flexget/task.py", line 87, in wrapper
    return func(self, *args, **kw)
           │    │      │       └ {}
           │    │      └ ()
           │    └ <flexget.task.Task object at 0x1523d5791f90>
           └ <function Task.execute at 0x1523e81e49d0>
  File "/usr/local/lib/python3.10/site-packages/flexget/task.py", line 727, in execute
    self._execute()
    │    └ <function Task._execute at 0x1523e81e4940>
    └ <flexget.task.Task object at 0x1523d5791f90>
  File "/usr/local/lib/python3.10/site-packages/flexget/task.py", line 696, in _execute
    self.__run_task_phase(phase)
    │                     └ 'output'
    └ <flexget.task.Task object at 0x1523d5791f90>
  File "/usr/local/lib/python3.10/site-packages/flexget/task.py", line 514, in __run_task_phase
    response = self.__run_plugin(plugin, phase, args)
               │                 │       │      └ (<flexget.task.Task object at 0x1523d5791f90>, {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (...
               │                 │       └ 'output'
               │                 └ <PluginInfo(name=auto_sign_in)>
               └ <flexget.task.Task object at 0x1523d5791f90>
> File "/usr/local/lib/python3.10/site-packages/flexget/task.py", line 547, in __run_plugin
    result = method(*args, **kwargs)
             │       │       └ {}
             │       └ (<flexget.task.Task object at 0x1523d5791f90>, {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (...
             └ <Event(name=plugin.auto_sign_in.output,func=on_task_output,priority=128)>
  File "/usr/local/lib/python3.10/site-packages/flexget/event.py", line 20, in __call__
    return self.func(*args, **kwargs)
           │    │     │       └ {}
           │    │     └ (<flexget.task.Task object at 0x1523d5791f90>, {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (...
           │    └ <bound method PluginAutoSignIn.on_task_output of <flexget.plugins.auto_sign_in.PluginAutoSignIn object at 0x1523d8ee5300>>
           └ <Event(name=plugin.auto_sign_in.output,func=on_task_output,priority=128)>

  File "/config/plugins/auto_sign_in.py", line 88, in on_task_output
    DetailsReport().build(task)
    │                     └ <flexget.task.Task object at 0x1523d5791f90>
    └ <class 'flexget.plugins.ptsites.utils.details_report.DetailsReport'>

  File "/config/plugins/ptsites/utils/details_report.py", line 147, in build
    details_now[key] = self.transfer_data(key, value)
    │           │      │    │             │    └ '-'
    │           │      │    │             └ 'share_ratio'
    │           │      │    └ <function DetailsReport.transfer_data at 0x1523da0f6950>
    │           │      └ <flexget.plugins.ptsites.utils.details_report.DetailsReport object at 0x1523d58654b0>
    │           └ 'share_ratio'
    └ {'downloaded': 0.0, 'uploaded': 0.0}

  File "/config/plugins/ptsites/utils/details_report.py", line 269, in transfer_data
    return float(value)
                 └ '-'

ValueError: could not convert string to float: '-'
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/flexget/task.py", line 547, in __run_plugin
    result = method(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/flexget/event.py", line 20, in __call__
    return self.func(*args, **kwargs)
  File "/config/plugins/auto_sign_in.py", line 88, in on_task_output
    DetailsReport().build(task)
  File "/config/plugins/ptsites/utils/details_report.py", line 147, in build
    details_now[key] = self.transfer_data(key, value)
  File "/config/plugins/ptsites/utils/details_report.py", line 269, in transfer_data
    return float(value)
ValueError: could not convert string to float: '-'

辛苦大佬了!!!谢谢!

U2签到经常失败

看了一下日志是ORC的锅 现在是规定次数没有识别出来就直接报错不再获取数据也不签到了
能否配置一个变量设置获取不到数据就随便选一个签到;或者没能签到也识别数据?

无法访问数据

1: beyond-hd 2022-10-01 Reason: Sign_in=> Url: https://beyond-hd.me redirect to https://beyond-hd.me/
2: dmhy 2022-10-01 Reason: Sign_in=> No permission to access data
3: hdcity 2022-10-01 Reason: Sign_in=> Sign in failed, no sign in
5: hdsky 2022-10-01 Reason: Sign_in=> No permission to access data
8: open 2022-10-01 Reason: Sign_in=> No permission to access data

暂停做种的问题

是这样, 我想要实现一个定时检查种子的保种人数, 大于x就停止做种的效果, 配置如下:

resume:
    disable: [ seen, seen_info_hash, retry_failed, history ]
    if:
      - qbittorrent_state == 'pausedUP': accept  
    template:
      - from_qbittorrent_template
      - qbittorrent_base_template
      - qbittorrent_resume_template

pause:
    disable: [ seen, seen_info_hash, retry_failed, history ]
    if:
      - qbittorrent_num_complete > X and qbittorrent_state == 'stalledUP':
          regexp:
            accept:
              - 'xxx'
            from: qbittorrent_tags
    template:
      - from_qbittorrent_template
      - qbittorrent_base_template
      - qbittorrent_pause_template

然后让pause在resume五分钟后运行...

现在遇到的问题是, pause第一次执行会失败...

报错为:

WARNING  qbittorrent_client pause           Sync error, reset rid. reason: Duplicate operation detected: pause_torrents hash1|hash2|...

但是再运行一次又能成功...

所以现在的暂时解决方案是安排两次pause...

求教这是为什么...

m-team no get login

为啥馒头不支持 cookie 访问了,现在我看必须要用户名密码登录,但是如果开启二级验证的话,登陆访问一定会触发验证码。我试了下 cookie 访问在开启二级验证的情况下还是可以用的。

大佬 最近怎么tg通知功能失效了,开了梯子,手机打开tg也没问题

大佬 最近怎么tg通知功能失效了,开了梯子,手机打开tg也没问题

2022-01-13 07:56:44 ERROR telegram sign_in Could not connect Telegram servers at this time, please try again later: urllib3 HTTPError HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot1600xxx7:AAxxxxxxx/getMe (Caused by ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')))

2022-01-13 07:56:50 WARNING notify sign_in Error while sending notification to telegram_mod: urllib3 HTTPError ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

hdsky签到错误

v0.8.12和最新版,只要添加hdsky签到,就会报错Did not pass schema
log

 CRITICAL manager                       [/tasks/sign_in/auto_sign_in/sites/hdsky] Got `c_secure_uid=xx; c_secure_pass=xx; c_secure_ssl=xx; c_secure_login=xx`, expected: dict
2022-09-13 01:29:51 CRITICAL manager                       Failed to load config file: Did not pass schema validation.

config.yml :

      sites:
        hdsky: 'c_secure_uid; c_secure_pass=; c_secure_ssl=; c_secure_tracker_ssl=; c_secure_login'

大佬,byr 签到失败,报错

byr 签到失败,报错
服务器是国外,有ipv6,符合byr访问需求。
签到报错
2021-10-11 10:36:12 WARNING urllib3.connectionpool sign_in Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffffaa315790>: Failed to establish a new connection: [Errno -2] Name does not resolve')': /index.php 2021-10-11 10:36:12 WARNING urllib3.connectionpool sign_in Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffffa76ac9a0>: Failed to establish a new connection: [Errno -2] Name does not resolve')': /index.php 2021-10-11 10:36:12 ERROR entry sign_in Failed byr 2021-10-11 (Sign_in=> Network error: url: https://byr.pt/index.php, error: (MaxRetryError("HTTPSConnectionPool(host='byr.pt', port=443): Max retries exceeded with url: /index.php (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffffa76db220>: Failed to establish a new connection: [Errno -2] Name does not resolve'))"),)) 2021-10-11 10:36:12 INFO task sign_in Plugin retry_failed has requested task to be ran again after execution has completed. 2021-10-11 10:36:12 VERBOSE task sign_in FAILED: byr 2021-10-11 by auto_sign_in plugin because sign_in=> Network error: url: https://byr.pt/index.php, error: (MaxRetryError("HTTPSConnectionPool(host='byr.pt', port=443): Max retries exceeded with url: /index.php (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffffa76db220>: Failed to establish a new connection: [Errno -2] Name does not resolve'))"),)

脚本运行报错 Task does not have any filter plugins to accept entries

大佬你好,在docker 上新建了flexget,运行正常,在目录中也放入了插件。
修改后的配置文件后运行报错
2021-10-29 20:13:01 WARNING task modify Task does not have any filter plugins to accept entries. You need at least one to accept the entries you want.
请问这个是什么原因导致的错误?谢谢
config文件如下:

web_server:
  bind: 0.0.0.0
  port: 3539

templates:
  from_qbittorrent_template:
    from_qbittorrent_mod: &qbittorrent_setting
      host: ****
      port: ****
      #非https请设置为 no
      use_ssl: no
      username: ****
      password: ****
  #基础
  qbittorrent_base_template:
    qbittorrent_mod: *qbittorrent_setting

  #修改
  qbittorrent_modify_template:
    qbittorrent_mod:
      action:
        modify:
          replace_trackers:
            #http替换成https
            'https://tracker.****.org/': 'http://tracker.****.org/'

schedules:
  - tasks: [ modify ]
    interval:
      #5分钟
      minutes: 5

tasks:
  modify:
    priority: 4
    disable: [ seen, seen_info_hash, retry_failed, history ]
    template:
      - from_qbittorrent_template
      - qbittorrent_base_template
      - qbittorrent_modify_template

AttributeError: 'QBittorrentClient' object has no attribute '_update_entry_trackers'

2020-03-20 07:07:34 CRITICAL task modify BUG: Unhandled error in plugin qbittorrent_mod: 'QBittorrentClient' object has no attribute '_update_entry_trackers'
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 890, in _bootstrap
self._bootstrap_inner()
│ └ <function Thread._bootstrap_inner at 0x14e859837ca0>
└ <Thread(task_queue, started daemon 22988072200992)>
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
│ └ <function Thread.run at 0x14e8598379d0>
└ <Thread(task_queue, started daemon 22988072200992)>
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
│ │ │ │ │ └ {}
│ │ │ │ └ <Thread(task_queue, started daemon 22988072200992)>
│ │ │ └ ()
│ │ └ <Thread(task_queue, started daemon 22988072200992)>
│ └ <bound method TaskQueue.run of <flexget.task_queue.TaskQueue object at 0x14e855042e50>>
└ <Thread(task_queue, started daemon 22988072200992)>
File "/usr/lib/python3.8/site-packages/flexget/task_queue.py", line 45, in run
self.current_task.execute()
│ │ └ <function Task.execute at 0x14e857d78160>
│ └ <flexget.task.Task object at 0x14e853a29220>
└ <flexget.task_queue.TaskQueue object at 0x14e855042e50>
File "/usr/lib/python3.8/site-packages/flexget/task.py", line 79, in wrapper
return func(self, *args, **kw)
│ │ │ └ {}
│ │ └ ()
│ └ <flexget.task.Task object at 0x14e853a29220>
└ <function Task.execute at 0x14e857d780d0>
File "/usr/lib/python3.8/site-packages/flexget/task.py", line 696, in execute
self._execute()
│ └ <function Task._execute at 0x14e857d78040>
└ <flexget.task.Task object at 0x14e853a29220>
File "/usr/lib/python3.8/site-packages/flexget/task.py", line 662, in _execute
self.__run_task_phase(phase)
│ └ 'output'
└ <flexget.task.Task object at 0x14e853a29220>
File "/usr/lib/python3.8/site-packages/flexget/task.py", line 488, in __run_task_phase
response = self.__run_plugin(plugin, phase, args)
│ │ │ └ (<flexget.task.Task object at 0x14e853a29220>, {'host': '192.168.1.114', 'port': 8080, 'use_ssl': False, 'username': 'admin',...
│ │ └ 'output'
│ └ <PluginInfo(name=qbittorrent_mod)>
└ <flexget.task.Task object at 0x14e853a29220>

File "/usr/lib/python3.8/site-packages/flexget/task.py", line 521, in __run_plugin
result = method(*args, **kwargs)
│ │ └ {}
│ └ (<flexget.task.Task object at 0x14e853a29220>, {'host': '192.168.1.114', 'port': 8080, 'use_ssl': False, 'username': 'admin',...
└ <Event(name=plugin.qbittorrent_mod.output,func=on_task_output,priority=135)>
File "/usr/lib/python3.8/site-packages/flexget/event.py", line 20, in call
return self.func(*args, **kwargs)
│ │ │ └ {}
│ │ └ (<flexget.task.Task object at 0x14e853a29220>, {'host': '192.168.1.114', 'port': 8080, 'use_ssl': False, 'username': 'admin',...
│ └ <bound method PluginQBittorrentMod.on_task_output of <flexget.plugins.flexget_qbittorrent_mod.qbittorrent_mod.PluginQBittorre...
└ <Event(name=plugin.qbittorrent_mod.output,func=on_task_output,priority=135)>
File "/usr/lib/python3.8/site-packages/flexget/plugins/flexget_qbittorrent_mod/qbittorrent_mod.py", line 206, in on_task_output
action(task, option)
│ │ └ {'tag_by_tracker': True, 'replace_tracker': {'': 'https...
│ └ <flexget.task.Task object at 0x14e853a29220>
└ <bound method PluginQBittorrentMod.modify_entries of <flexget.plugins.flexget_qbittorrent_mod.qbittorrent_mod.PluginQBittorre...
File "/usr/lib/python3.8/site-packages/flexget/plugins/flexget_qbittorrent_mod/qbittorrent_mod.py", line 424, in modify_entries
self.client.edit_trackers(entry.get('torrent_info_hash'), orig_url, new_url)
│ │ │ │ │ │ └ ''
│ │ │ │ │ └ ''
│ │ │ │ └ <function LazyDict.get at 0x14e857f9a0d0>
│ │ │ └ <Entry(title=[EAC][130320] kz(livetune) feat. 初音ミク - Re-Dial[期間限定盤] (WAV+CUE+BK+MDF),state=accepted)>
│ │ └ <function QBittorrentClient.edit_trackers at 0x14e85631f160>
│ └ <qbittorrent_client.QBittorrentClient object at 0x14e85351adc0>
└ <flexget.plugins.flexget_qbittorrent_mod.qbittorrent_mod.PluginQBittorrentMod object at 0x14e855118a30>
File "/usr/lib/python3.8/site-packages/flexget/plugins/flexget_qbittorrent_mod/qbittorrent_client.py", line 238, in edit_trackers
self._update_entry_trackers(torrent_hash)
│ └ '0c1d01a1f33b552eb929daf6fc966f6e0ffa2100'
└ <qbittorrent_client.QBittorrentClient object at 0x14e85351adc0>

AttributeError: 'QBittorrentClient' object has no attribute '_update_entry_trackers'
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/flexget/task.py", line 521, in __run_plugin
result = method(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/flexget/event.py", line 20, in call
return self.func(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/flexget/plugins/flexget_qbittorrent_mod/qbittorrent_mod.py", line 206, in on_task_output
action(task, option)
File "/usr/lib/python3.8/site-packages/flexget/plugins/flexget_qbittorrent_mod/qbittorrent_mod.py", line 424, in modify_entries
self.client.edit_trackers(entry.get('torrent_info_hash'), orig_url, new_url)
File "/usr/lib/python3.8/site-packages/flexget/plugins/flexget_qbittorrent_mod/qbittorrent_client.py", line 238, in edit_trackers
self._update_entry_trackers(torrent_hash)
AttributeError: 'QBittorrentClient' object has no attribute '_update_entry_trackers'

docker qbit 4.2.1
docker flexget 3.1.5
经常报错 有大量tag没有修改,大约有1000+

hdsky 签到失败

1: hdsky 2022-08-05 Reason: Sign_in=> Open api qps request limit reached
2: m-team 2022-08-05 Reason: Sign_in=> response.status_code=503
3: pttime 2022-08-05 Reason: Details=> detail: hr not found.

html_rss的配置怎么配置?

跟着模板找css选择器的教程跟着学着试了试,馒头的貌似匹配到数据了,但是观众的貌似一直获取不到。麻烦老大帮忙看看观众的组件选择器对不对?
root_element_selector: '#outer > table > tbody > tr.sticky_top'

签到错误

海豚和海豹都显示error: Exceeded 30 redirects.

U2签到过程中crash

后来再次运行又没有问题了。crash的log如下:

2022-05-05 00:00:35 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         attempts: 0 / 5, url: https://u2.dmhy.org/image.php?action=adbc2&req=01fab842ed163b84022bca209c46abef12dc3651406a4dae9ddf3b069e7ce888d294f0493047109ba585ed9a70a94df4ae8345fc5ba17d68d4b812f4527d2b40ecc3a2cc0a2f9ce87175017c1b74a476
2022-05-05 00:00:36 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         request image...
2022-05-05 00:00:41 INFO     flexget.plugins.ptsites.utils.baidu_ocr sign_in         {'words_result': [{'words': 'TOEI VIDEO'}, {'words': '遊'}, {'words': '画'}, {'words': 'H'}, {'words': 'デヱルモンスクーズ'}, {'words': 'a/●e'}, {'words': 'HANB'}], 'words_result_num': 7, 'log_id': 1521882515317143009}
2022-05-05 00:00:41 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         original_ocr: 遊画デヱルモンスクーズ
2022-05-05 00:00:42 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         request image...
2022-05-05 00:00:44 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         request image...
2022-05-05 00:00:47 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         request image...
2022-05-05 00:00:49 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         request image...
2022-05-05 00:00:51 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         request image...
2022-05-05 00:00:53 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         request image...
2022-05-05 00:00:57 INFO     flexget.plugins.ptsites.utils.baidu_ocr sign_in         {'words_result': [{'words': 'TOEI VIOEO'}, {'words': 'M'}, {'words': '映画'}, {'words': 'H'}], 'words_result_num': 4, 'log_id': 1521882583657652784}
2022-05-05 00:00:59 INFO     flexget.plugins.ptsites.utils.baidu_ocr sign_in         {'words_result': [{'words': 'TOEI VIOEO'}, {'words': 'M'}], 'words_result_num': 2, 'log_id': 1521882591899123274}
2022-05-05 00:00:59 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         jap_ocr: 映画
2022-05-05 00:01:00 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         attempts: 1 / 5, url: https://u2.dmhy.org/image.php?action=adbc2&req=aa1150f0e3ef9fb624eba92dbe3217fa37c7c127a6992e104b6a528f7e0d2be29a660a8d54d9ea8142c3ec0a7dd36f4d3cab1f1c75b3db60302e3e441b262d3aac495925aec70ca833385a4f519d831c
2022-05-05 00:01:01 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         request image...
2022-05-05 00:01:04 INFO     flexget.plugins.ptsites.utils.baidu_ocr sign_in         {'words_result': [{'words': 'す3'}], 'words_result_num': 1, 'log_id': 1521882609338183602}
2022-05-05 00:01:04 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         original_ocr: す
2022-05-05 00:01:04 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         attempts: 2 / 5, url: https://u2.dmhy.org/image.php?action=adbc2&req=94ff44a3641899a93d1550fffff5b49e4ee61d648c87522cbbed7b7189d03a070ef7541dbcb888ce2be1dad2389d1d7af118ead612d04d97f94fb54597d9b5ed49ea3c18a2c129f1c939d1f5e79df5de
2022-05-05 00:01:05 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         request image...
2022-05-05 00:01:08 INFO     flexget.plugins.ptsites.utils.baidu_ocr sign_in         {'words_result': [{'words': '电r'}, {'words': 'E'}, {'words': '進レ'}], 'words_result_num': 3, 'log_id': 1521882627010633788}
2022-05-05 00:01:08 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         original_ocr: 电進レ
2022-05-05 00:01:09 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         request image...
2022-05-05 00:01:11 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         request image...
2022-05-05 00:01:13 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         request image...
2022-05-05 00:01:15 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         request image...
2022-05-05 00:01:17 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         request image...
2022-05-05 00:01:19 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         request image...
2022-05-05 00:01:21 DEBUG    flexget.plugins.ptsites.sites.dmhy sign_in         request image...
2022-05-05 00:02:23 INFO     flexget.plugins.ptsites.utils.baidu_ocr sign_in         {'error_code': 'SDK108', 'error_msg': 'connection or read data timeout'}
2022-05-05 00:02:23 DEBUG    entry         sign_in         Marking entry 'dmhy 2022-05-05' as failed
2022-05-05 00:02:23 ERROR    entry         sign_in         Failed dmhy 2022-05-05 (Sign_in=> connection or read data timeout)
2022-05-05 00:02:23 DEBUG    failed        sign_in         Marking dmhy 2022-05-05 in failed list. Has failed 1 times.
2022-05-05 00:02:23 DEBUG    backlog       sign_in         Saving dmhy 2022-05-05
2022-05-05 00:02:23 DEBUG    task          sign_in         Plugin retry_failed has requested task to be ran again after execution has completed.
2022-05-05 00:02:23 VERBOSE  task          sign_in         FAILED: `dmhy 2022-05-05` by auto_sign_in plugin because sign_in=> connection or read data timeout
2022-05-05 00:02:25 INFO     flexget.plugins.ptsites.utils.baidu_ocr sign_in         {'words_result': [{'words': '电'}, {'words': 'DVD'}, {'words': 'EE'}, {'words': '進ル'}], 'words_result_num': 4, 'log_id': 1521882949696491875}
2022-05-05 00:02:25 CRITICAL task          sign_in         BUG: Unhandled error in plugin auto_sign_in: object of type 'NoneType' has no len()
Traceback (most recent call last):

  File "/usr/lib/python3.10/threading.py", line 966, in _bootstrap
    self._bootstrap_inner()
    │    └ <function Thread._bootstrap_inner at 0x7fe3bde588b0>
    └ <Thread(task_queue, started daemon 140615910708800)>
  File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
    │    └ <function Thread.run at 0x7fe3bde585e0>
    └ <Thread(task_queue, started daemon 140615910708800)>
  File "/usr/lib/python3.10/threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)
    │    │        │    │        │    └ {}
    │    │        │    │        └ <Thread(task_queue, started daemon 140615910708800)>
    │    │        │    └ ()
    │    │        └ <Thread(task_queue, started daemon 140615910708800)>
    │    └ <bound method TaskQueue.run of <flexget.task_queue.TaskQueue object at 0x7fe3b1923580>>
    └ <Thread(task_queue, started daemon 140615910708800)>
  File "/usr/local/lib/python3.10/dist-packages/flexget/task_queue.py", line 47, in run
    self.current_task.execute()
    │    │            └ <function Task.execute at 0x7fe3bab2b640>
    │    └ <flexget.task.Task object at 0x7fe3b19efd90>
    └ <flexget.task_queue.TaskQueue object at 0x7fe3b1923580>
  File "/usr/local/lib/python3.10/dist-packages/flexget/task.py", line 87, in wrapper
    return func(self, *args, **kw)
           │    │      │       └ {}
           │    │      └ ()
           │    └ <flexget.task.Task object at 0x7fe3b19efd90>
           └ <function Task.execute at 0x7fe3bab2b5b0>
  File "/usr/local/lib/python3.10/dist-packages/flexget/task.py", line 727, in execute
    self._execute()
    │    └ <function Task._execute at 0x7fe3bab2b520>
    └ <flexget.task.Task object at 0x7fe3b19efd90>
  File "/usr/local/lib/python3.10/dist-packages/flexget/task.py", line 696, in _execute
    self.__run_task_phase(phase)
    │                     └ 'output'
    └ <flexget.task.Task object at 0x7fe3b19efd90>
  File "/usr/local/lib/python3.10/dist-packages/flexget/task.py", line 514, in __run_task_phase
    response = self.__run_plugin(plugin, phase, args)
               │                 │       │      └ (<flexget.task.Task object at 0x7fe3b19efd90>, {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (...
               │                 │       └ 'output'
               │                 └ <PluginInfo(name=auto_sign_in)>
               └ <flexget.task.Task object at 0x7fe3b19efd90>
> File "/usr/local/lib/python3.10/dist-packages/flexget/task.py", line 547, in __run_plugin
    result = method(*args, **kwargs)
             │       │       └ {}
             │       └ (<flexget.task.Task object at 0x7fe3b19efd90>, {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (...
             └ <Event(name=plugin.auto_sign_in.output,func=on_task_output,priority=128)>
  File "/usr/local/lib/python3.10/dist-packages/flexget/event.py", line 20, in __call__
    return self.func(*args, **kwargs)
           │    │     │       └ {}
           │    │     └ (<flexget.task.Task object at 0x7fe3b19efd90>, {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (...
           │    └ <bound method PluginAutoSignIn.on_task_output of <flexget.plugins.auto_sign_in.PluginAutoSignIn object at 0x7fe3b3c26440>>
           └ <Event(name=plugin.auto_sign_in.output,func=on_task_output,priority=128)>

  File "/root/.flexget/plugins/auto_sign_in.py", line 77, in on_task_output
    Executor.sign_in(entry, config)
    │        │       │      └ {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/...
    │        │       └ <Entry(title=dmhy 2022-05-05,state=failed)>
    │        └ <staticmethod(<function Executor.sign_in at 0x7fe3ba734670>)>
    └ <class 'flexget.plugins.ptsites.executor.Executor'>

  File "/root/.flexget/plugins/ptsites/executor.py", line 61, in sign_in
    site_object.sign_in(entry, config)
    │           │       │      └ {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/...
    │           │       └ <Entry(title=dmhy 2022-05-05,state=failed)>
    │           └ <function SiteBase.sign_in at 0x7fe3ba72bbe0>
    └ <flexget.plugins.ptsites.sites.dmhy.MainClass object at 0x7fe3b0663df0>

  File "/root/.flexget/plugins/ptsites/schema/site_base.py", line 112, in sign_in
    last_response = method(entry, config, work, last_content)
                    │      │      │       │     └ '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<...
                    │      │      │       └ <flexget.plugins.ptsites.schema.site_base.Work object at 0x7fe3b3e534c0>
                    │      │      └ {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/...
                    │      └ <Entry(title=dmhy 2022-05-05,state=failed)>
                    └ <bound method MainClass.sign_in_by_anime of <flexget.plugins.ptsites.sites.dmhy.MainClass object at 0x7fe3b0663df0>>

  File "/root/.flexget/plugins/ptsites/sites/dmhy.py", line 116, in sign_in_by_anime
    data = self.build_data(entry, config, work, last_content, ocr_config)
           │    │          │      │       │     │             └ {'retry': 5, 'char_count': 3, 'score': 30}
           │    │          │      │       │     └ '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<...
           │    │          │      │       └ <flexget.plugins.ptsites.schema.site_base.Work object at 0x7fe3b3e534c0>
           │    │          │      └ {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/...
           │    │          └ <Entry(title=dmhy 2022-05-05,state=failed)>
           │    └ <function MainClass.build_data at 0x7fe3ba30bbe0>
           └ <flexget.plugins.ptsites.sites.dmhy.MainClass object at 0x7fe3b0663df0>

  File "/root/.flexget/plugins/ptsites/sites/dmhy.py", line 189, in build_data
    return self.build_data(entry, config, work, reload_content, ocr_config)
           │    │          │      │       │     │               └ {'retry': 5, 'char_count': 3, 'score': 30}
           │    │          │      │       │     └ '<div id="showup"><table class="captcha"><tr>\n\t<td><img src="image.php?action=adbc2&req=aa1150f0e3ef9fb624eba92dbe3217fa37c...
           │    │          │      │       └ <flexget.plugins.ptsites.schema.site_base.Work object at 0x7fe3b3e534c0>
           │    │          │      └ {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/...
           │    │          └ <Entry(title=dmhy 2022-05-05,state=failed)>
           │    └ <function MainClass.build_data at 0x7fe3ba30bbe0>
           └ <flexget.plugins.ptsites.sites.dmhy.MainClass object at 0x7fe3b0663df0>

  File "/root/.flexget/plugins/ptsites/sites/dmhy.py", line 189, in build_data
    return self.build_data(entry, config, work, reload_content, ocr_config)
           │    │          │      │       │     │               └ {'retry': 5, 'char_count': 3, 'score': 30}
           │    │          │      │       │     └ '<div id="showup"><table class="captcha"><tr>\n\t<td><img src="image.php?action=adbc2&req=94ff44a3641899a93d1550fffff5b49e4ee...
           │    │          │      │       └ <flexget.plugins.ptsites.schema.site_base.Work object at 0x7fe3b3e534c0>
           │    │          │      └ {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/...
           │    │          └ <Entry(title=dmhy 2022-05-05,state=failed)>
           │    └ <function MainClass.build_data at 0x7fe3ba30bbe0>
           └ <flexget.plugins.ptsites.sites.dmhy.MainClass object at 0x7fe3b0663df0>

  File "/root/.flexget/plugins/ptsites/sites/dmhy.py", line 140, in build_data
    oct_text = ocr_text1 if len(ocr_text1) > len(ocr_text2) else ocr_text2
               │                │                │               └ '电進ル'
               │                │                └ '电進ル'
               │                └ None
               └ None

TypeError: object of type 'NoneType' has no len()
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/flexget/task.py", line 547, in __run_plugin
    result = method(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/flexget/event.py", line 20, in __call__
    return self.func(*args, **kwargs)
  File "/root/.flexget/plugins/auto_sign_in.py", line 77, in on_task_output
    Executor.sign_in(entry, config)
  File "/root/.flexget/plugins/ptsites/executor.py", line 61, in sign_in
    site_object.sign_in(entry, config)
  File "/root/.flexget/plugins/ptsites/schema/site_base.py", line 112, in sign_in
    last_response = method(entry, config, work, last_content)
  File "/root/.flexget/plugins/ptsites/sites/dmhy.py", line 116, in sign_in_by_anime
    data = self.build_data(entry, config, work, last_content, ocr_config)
  File "/root/.flexget/plugins/ptsites/sites/dmhy.py", line 189, in build_data
    return self.build_data(entry, config, work, reload_content, ocr_config)
  File "/root/.flexget/plugins/ptsites/sites/dmhy.py", line 189, in build_data
    return self.build_data(entry, config, work, reload_content, ocr_config)
  File "/root/.flexget/plugins/ptsites/sites/dmhy.py", line 140, in build_data
    oct_text = ocr_text1 if len(ocr_text1) > len(ocr_text2) else ocr_text2
TypeError: object of type 'NoneType' has no len()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.