ScriptBase.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:nzbget-dirwatch 作者: caronc 项目源码 文件源码
def push_dnzb(self, nzbheaders=None):
        """pushes meta information to NZBGet Server as DNZB content
           if no `nzbheaders` (dictionary) is defined, then the
           default one is used instead.
        """
        if nzbheaders is None:
            nzbheaders = self.nzbheaders

        if not isinstance(nzbheaders, dict):
            return False

        for k, v in nzbheaders.items():
            # Push content to NZB Server
            self.push('%s%s' % (
                SHR_ENVIRO_DNZB_ID,
                k.upper(),
            ), v.strip())

        return True
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号