bgmi3.protocol.output

Base for Data source see 输出下载结果

class bgmi3.protocol.output.Base(config: dict)[源代码]

Base class for all output plugin like notify and downloader delegate

abstract __init__(config: dict)None[源代码]

init

参数

config -- config dict user defined in config file.

abstract classmethod require()None[源代码]

Implement this classmethod if your download delegate has some additional requires

警告

You should not install python package here, because it may break other packages.

引发

RequireNotSatisfiedError -- If some requirements not satisfied. like missing bin or python package. Don't raise ImportError, catch it and describe it in message.

abstract execute(subscription: Subscription, torrent: str, save_path: str)None[源代码]

plugin do its works

参数
  • subscription -- subscription

  • torrent -- http(s) or magnet url of torrent file

  • save_path -- video file save path

引发