• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python NZBProvider.NZBProvider类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中sickrage.providers.nzb.NZBProvider.NZBProvider的典型用法代码示例。如果您正苦于以下问题:Python NZBProvider类的具体用法?Python NZBProvider怎么用?Python NZBProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了NZBProvider类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: __init__

 def __init__(self):
     NZBProvider.__init__(self, "Womble's Index")
     self.public = True
     self.cache = WombleCache(self)
     self.urls = {'base_url': 'http://newshost.co.za/'}
     self.url = self.urls['base_url']
     self.supports_backlog = False
开发者ID:madtrix74,项目名称:SickRage,代码行数:7,代码来源:womble.py


示例2: __init__

    def __init__(self, name, url, key='0', catIDs='5030,5040', search_mode='eponly',
                 search_fallback=False, enable_daily=True, enable_backlog=False):

        NZBProvider.__init__(self, name)

        self.url = url
        self.key = key

        self.search_mode = search_mode
        self.search_fallback = search_fallback
        self.enable_daily = enable_daily
        self.enable_backlog = enable_backlog

        # 0 in the key spot indicates that no key is needed
        self.needs_auth = self.key != '0'
        self.public = not self.needs_auth

        self.catIDs = catIDs if catIDs else '5030,5040'

        self.default = False

        self._caps = False
        self.use_tv_search = None
        self.cap_tv_search = None
        # self.cap_search = None
        # self.cap_movie_search = None
        # self.cap_audio_search = None

        self.cache = tvcache.TVCache(self, min_time=30)  # only poll newznab providers every 30 minutes max
开发者ID:Zelgadis87,项目名称:SickRage,代码行数:29,代码来源:newznab.py


示例3: __init__

    def __init__(
        self,
        name,
        url,
        key="0",
        catIDs="5030,5040",
        search_mode="eponly",
        search_fallback=False,
        enable_daily=True,
        enable_backlog=False,
    ):

        NZBProvider.__init__(self, name)

        self.urls = {"base_url": url}
        self.url = self.urls["base_url"]

        self.key = key

        self.search_mode = search_mode
        self.search_fallback = search_fallback
        self.enable_daily = enable_daily
        self.enable_backlog = enable_backlog

        # 0 in the key spot indicates that no key is needed
        self.needs_auth = self.key != "0"
        self.public = not self.needs_auth

        self.catIDs = catIDs if catIDs else "5030,5040"

        self.default = False

        self.cache = NewznabCache(self)
开发者ID:CvVossen,项目名称:SickRage,代码行数:33,代码来源:newznab.py


示例4: __init__

    def __init__(self, name, url, key='0', catIDs='5030,5040', search_mode='eponly',
                 search_fallback=False, enable_daily=True, enable_backlog=False):

        NZBProvider.__init__(self, name)

        # self.headers.update({'User-Agent': USER_AGENT})

        self.urls = {'base_url': url}
        self.url = self.urls['base_url']

        self.key = key

        self.search_mode = search_mode
        self.search_fallback = search_fallback
        self.enable_daily = enable_daily
        self.enable_backlog = enable_backlog

        # 0 in the key spot indicates that no key is needed
        self.needs_auth = self.key != '0'
        self.public = not self.needs_auth

        self.catIDs = catIDs if catIDs else '5030,5040'

        self.default = False

        self.cache = NewznabCache(self)
开发者ID:allan84,项目名称:SickRage,代码行数:26,代码来源:newznab.py


示例5: __init__

    def __init__(self):

        # Provider Init
        NZBProvider.__init__(self, 'Anizb')

        # Credentials
        self.public = True

        # URLs
        self.url = 'https://anizb.org/'
        self.urls = {
            'rss': self.url,
            'api': urljoin(self.url, 'api/?q=')
        }

        # Proper Strings

        # Miscellaneous Options
        self.supports_absolute_numbering = True
        self.anime_only = True

        # Torrent Stats

        # Cache
        self.cache = tvcache.TVCache(self)
开发者ID:Eiber,项目名称:SickRage-Medusa,代码行数:25,代码来源:anizb.py


示例6: __init__

    def __init__(self):
        NZBProvider.__init__(self, "BinSearch")

        self.public = True
        self.cache = BinSearchCache(self)
        self.urls = {'base_url': 'https://www.binsearch.info/'}
        self.url = self.urls['base_url']
        self.supports_backlog = False
开发者ID:madtrix74,项目名称:SickRage,代码行数:8,代码来源:binsearch.py


示例7: __init__

    def __init__(self):

        NZBProvider.__init__(self, "Womble's Index")

        self.public = True
        self.cache = WombleCache(self, min_time=15)  # only poll Womble's Index every 15 minutes max
        self.urls = {'base_url': 'http://newshost.co.za/'}
        self.url = self.urls['base_url']
        self.supports_backlog = False
开发者ID:Hydrog3n,项目名称:SickRage,代码行数:9,代码来源:womble.py


示例8: __init__

    def __init__(self):
        NZBProvider.__init__(self, "omgwtfnzbs")

        self.username = None
        self.api_key = None
        self.cache = OmgwtfnzbsCache(self)

        self.urls = {'base_url': 'https://omgwtfnzbs.org/'}
        self.url = self.urls['base_url']
开发者ID:madtrix74,项目名称:SickRage,代码行数:9,代码来源:omgwtfnzbs.py


示例9: __init__

    def __init__(self):

        NZBProvider.__init__(self, "BinSearch")

        self.public = True
        self.cache = BinSearchCache(self, min_time=30)  # only poll Binsearch every 30 minutes max
        self.urls = {'base_url': 'https://www.binsearch.info/'}
        self.url = self.urls['base_url']
        self.supports_backlog = False
开发者ID:Hydrog3n,项目名称:SickRage,代码行数:9,代码来源:binsearch.py


示例10: __init__

    def __init__(self):

        NZBProvider.__init__(self, 'Womble\'s Index')

        self.public = True

        self.url = 'http://newshost.co.za'
        self.urls = {'rss': urljoin(self.url, 'rss')}
        self.supports_backlog = False

        self.cache = WombleCache(self, min_time=20)
开发者ID:ratoaq2,项目名称:SickRage,代码行数:11,代码来源:womble.py


示例11: __init__

    def __init__(self):

        NZBProvider.__init__(self, "Womble's Index")

        self.public = True

        self.url = "http://newshost.co.za"
        self.urls = {"rss": urljoin(self.url, "rss")}
        self.supports_backlog = False

        self.cache = WombleCache(self, min_time=20)
开发者ID:Arcanemagus,项目名称:SickRage,代码行数:11,代码来源:womble.py


示例12: __init__

    def __init__(self):

        NZBProvider.__init__(self, "BinSearch")

        self.url = "https://www.binsearch.info"
        self.urls = {"rss": urljoin(self.url, "rss.php")}

        self.public = True
        self.supports_backlog = False

        self.cache = BinSearchCache(self, min_time=30)  # only poll Binsearch every 30 minutes max
开发者ID:Indigo744,项目名称:SickRage,代码行数:11,代码来源:binsearch.py


示例13: __init__

    def __init__(self):
        NZBProvider.__init__(self, "omgwtfnzbs")

        self.username = None
        self.api_key = None
        self.cache = OmgwtfnzbsCache(self)

        self.url = 'https://omgwtfnzbs.org/'
        self.urls = {
            'rss': 'https://rss.omgwtfnzbs.org/rss-download.php',
            'api': 'https://api.omgwtfnzbs.org/json/'
        }
开发者ID:pkoutsias,项目名称:SickRage,代码行数:12,代码来源:omgwtfnzbs.py


示例14: __init__

    def __init__(self):
        NZBProvider.__init__(self, "OMGWTFNZBs")

        self.username = None
        self.api_key = None

        self.cache = OmgwtfnzbsCache(self)

        self.url = "https://omgwtfnzbs.me/"
        self.urls = {"rss": "https://rss.omgwtfnzbs.me/rss-download.php", "api": "https://api.omgwtfnzbs.me/json/"}

        self.proper_strings = [".PROPER.", ".REPACK."]
开发者ID:SickRage,项目名称:SickRage,代码行数:12,代码来源:omgwtfnzbs.py


示例15: __init__

    def __init__(self):

        NZBProvider.__init__(self, "AnimeNZB")

        self.supports_backlog = False
        self.public = True
        self.supports_absolute_numbering = True
        self.anime_only = True

        self.urls = {'base_url': 'http://animenzb.com/'}
        self.url = self.urls['base_url']

        self.cache = animenzbCache(self)
开发者ID:madtrix74,项目名称:SickRage,代码行数:13,代码来源:animenzb.py


示例16: __init__

    def __init__(self):
        NZBProvider.__init__(self, "omgwtfnzbs")

        self.username = None
        self.api_key = None
        self.cache = OmgwtfnzbsCache(self)

        self.url = 'https://omgwtfnzbs.org/'
        self.urls = {
            'rss': 'https://rss.omgwtfnzbs.org/rss-download.php',
            'api': 'https://api.omgwtfnzbs.org/json/'
        }

        self.proper_strings = ['.PROPER.', '.REPACK.']
开发者ID:CvVossen,项目名称:SickRage,代码行数:14,代码来源:omgwtfnzbs.py


示例17: __init__

    def __init__(self):

        # Provider Init
        NZBProvider.__init__(self, "Womble's Index")

        # Credentials
        self.public = True

        # URLs
        self.url = 'http://newshost.co.za'
        self.urls = {
            'rss': urljoin(self.url, 'rss'),
        }

        # Proper Strings

        # Miscellaneous Options
        self.supports_backlog = False

        # Cache
        self.cache = WombleCache(self, min_time=20)
开发者ID:Eiber,项目名称:SickRage-Medusa,代码行数:21,代码来源:womble.py


示例18: __init__

    def __init__(self):

        # Provider Init
        NZBProvider.__init__(self, 'BinSearch')

        # Credentials
        self.public = True
        self.supports_backlog = False

        # URLs
        self.url = 'https://www.binsearch.info'
        self.urls = {
            'rss': urljoin(self.url, 'rss.php')
        }

        # Proper Strings

        # Miscellaneous Options

        # Cache
        self.cache = BinSearchCache(self, min_time=30)  # only poll Binsearch every 30 minutes max
开发者ID:Eiber,项目名称:SickRage-Medusa,代码行数:21,代码来源:binsearch.py


示例19: test_is_active

    def test_is_active(self):
        """
        Test is_active
        """
        test_cases = {
            (False, False): False,
            (False, None): False,
            (False, True): False,
            (None, False): False,
            (None, None): False,
            (None, True): False,
            (True, False): False,
            (True, None): False,
            (True, True): True,
        }

        for ((use_nzb, enabled), result) in iteritems(test_cases):
            sickbeard.USE_NZBS = use_nzb

            provider = NZBProvider('Test Provider')
            provider.enabled = enabled

            self.assertEqual(provider.is_active(), result)
开发者ID:Eiber,项目名称:SickRage-Medusa,代码行数:23,代码来源:nzb_provider_tests.py


示例20: __init__

 def __init__(self):
     NZBProvider.__init__(self, "BinnewZ")
开发者ID:lastdevonearth,项目名称:SickRage,代码行数:2,代码来源:__init__.py



注:本文中的sickrage.providers.nzb.NZBProvider.NZBProvider类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python TorrentProvider.TorrentProvider类代码示例发布时间:2022-05-27
下一篇:
Python TorrentProvider.TorrentProvider类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap