当前位置: 首页>>代码示例>>Python>>正文


Python NZBProvider.NZBProvider类代码示例

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


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


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