本文整理汇总了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
示例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
示例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)
示例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)
示例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)
示例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
示例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
示例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']
示例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
示例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)
示例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)
示例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
示例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/'
}
示例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."]
示例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)