當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。