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


Python TorrentProvider.TorrentProvider类代码示例

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


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

示例1: __init__

    def __init__(self):

        TorrentProvider.__init__(self, "MoreThanTV")

        self._uid = None
        self._hash = None
        self.username = None
        self.password = None
        self.ratio = None
        self.minseed = None
        self.minleech = None
        # self.freeleech = False

        self.urls = {'base_url': 'https://www.morethan.tv/',
                     'login': 'https://www.morethan.tv/login.php',
                     'detail': 'https://www.morethan.tv/torrents.php?id=%s',
                     'search': 'https://www.morethan.tv/torrents.php?tags_type=1&order_by=time&order_way=desc&action=basic&searchsubmit=1&searchstr=%s',
                     'download': 'https://www.morethan.tv/torrents.php?action=download&id=%s'}

        self.url = self.urls['base_url']

        self.cookies = None

        self.proper_strings = ['PROPER', 'REPACK']

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

示例2: __init__

    def __init__(self):

        TorrentProvider.__init__(self, "KickAssTorrents")

        self.public = True

        self.confirmed = True
        self.ratio = None
        self.minseed = None
        self.minleech = None

        self.urls = {
            'base_url': 'https://kat.cr/',
            'search': 'https://kat.cr/%s/',
        }

        self.url = self.urls['base_url']
        self.custom_url = None

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

        self.search_params = {
            'q': '',
            'field': 'seeders',
            'sorder': 'desc',
            'rss': 1,
            'category': 'tv'
        }

        self.cache = KATCache(self)
开发者ID:TagForce,项目名称:SickRage,代码行数:30,代码来源:kat.py

示例3: __init__

    def __init__(self):

        TorrentProvider.__init__(self, "Pretome")

        self.username = None
        self.password = None
        self.pin = None
        self.ratio = None
        self.minseed = None
        self.minleech = None

        self.urls = {
            "base_url": "https://pretome.info",
            "login": "https://pretome.info/takelogin.php",
            "detail": "https://pretome.info/details.php?id=%s",
            "search": "https://pretome.info/browse.php?search=%s%s",
            "download": "https://pretome.info/download.php/%s/%s.torrent",
        }

        self.url = self.urls["base_url"]

        self.categories = "&st=1&cat%5B%5D=7"

        self.proper_strings = ["PROPER", "REPACK"]

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

示例4: __init__

    def __init__(self):

        TorrentProvider.__init__(self, "TorrentDay")

        self._uid = None
        self._hash = None
        self.username = None
        self.password = None
        self.ratio = None
        self.freeleech = False
        self.minseed = None
        self.minleech = None

        self.cache = TorrentDayCache(self)

        self.urls = {
            'base_url': 'https://classic.torrentday.com',
             'login': 'https://classic.torrentday.com/torrents/',
             'search': 'https://classic.torrentday.com/V3/API/API.php',
             'download': 'https://classic.torrentday.com/download.php/%s/%s'
        }

        self.url = self.urls['base_url']

        self.cookies = None

        self.categories = {'Season': {'c14': 1}, 'Episode': {'c2': 1, 'c26': 1, 'c7': 1, 'c24': 1},
                           'RSS': {'c2': 1, 'c26': 1, 'c7': 1, 'c24': 1, 'c14': 1}}
开发者ID:TagForce,项目名称:SickRage,代码行数:28,代码来源:torrentday.py

示例5: __init__

    def __init__(self):

        TorrentProvider.__init__(self, "GFTracker")

        self.username = None
        self.password = None
        self.ratio = None
        self.minseed = None
        self.minleech = None

        self.urls = {'base_url': 'https://www.thegft.org',
                     'login': 'https://www.thegft.org/loginsite.php',
                     'search': 'https://www.thegft.org/browse.php?view=%s%s',
                     'download': 'https://www.thegft.org/%s',
        }

        self.url = self.urls['base_url']

        self.cookies = None

        self.categories = "0&c26=1&c37=1&c19=1&c47=1&c17=1&c4=1&search="

        self.proper_strings = ['PROPER', 'REPACK']

        self.cache = GFTrackerCache(self)
开发者ID:TagForce,项目名称:SickRage,代码行数:25,代码来源:gftracker.py

示例6: __init__

    def __init__(self):

        TorrentProvider.__init__(self, "Danishbits")

        self.username = None
        self.password = None
        self.ratio = None

        self.cache = DanishbitsCache(self)

        self.urls = {'base_url': 'https://danishbits.org/',
                     'search': 'https://danishbits.org/torrents.php?action=newbrowse&search=%s%s',
                     'login_page': 'https://danishbits.org/login.php'}

        self.url = self.urls['base_url']

        self.categories = '&group=3'

        self.last_login_check = None

        self.login_opener = None

        self.minseed = 0
        self.minleech = 0
        self.freeleech = True
开发者ID:TagForce,项目名称:SickRage,代码行数:25,代码来源:danishbits.py

示例7: __init__

    def __init__(self):

        TorrentProvider.__init__(self, "SceneAccess")

        self.username = None
        self.password = None
        self.ratio = None
        self.minseed = None
        self.minleech = None

        self.cache = SCCCache(self)

        self.urls = {
            'base_url': 'https://sceneaccess.eu',
            'login': 'https://sceneaccess.eu/login',
            'detail': 'https://www.sceneaccess.eu/details?id=%s',
            'search': 'https://sceneaccess.eu/all?search=%s&method=1&%s',
            'download': 'https://www.sceneaccess.eu/%s'
        }

        self.url = self.urls['base_url']

        self.categories = {
            'Season': 'c26=26&c44=44&c45=45', # Archive, non-scene HD, non-scene SD; need to include non-scene because WEB-DL packs get added to those categories
            'Episode': 'c17=17&c27=27&c33=33&c34=34&c44=44&c45=45', # TV HD, TV SD, non-scene HD, non-scene SD, foreign XviD, foreign x264
            'RSS': 'c17=17&c26=26&c27=27&c33=33&c34=34&c44=44&c45=45' # Season + Episode
        }
开发者ID:TagForce,项目名称:SickRage,代码行数:27,代码来源:scc.py

示例8: __init__

    def __init__(self):
        TorrentProvider.__init__(self, 'TvChaosUK')

        self.urls = {'base_url': 'https://tvchaosuk.com/',
                     'login': 'https://tvchaosuk.com/takelogin.php',
                     'index': 'https://tvchaosuk.com/index.php',
                     'search': 'https://tvchaosuk.com/browse.php'}

        self.url = self.urls['base_url']

        self.username = None
        self.password = None
        self.ratio = None
        self.minseed = None
        self.minleech = None
        self.freeleech = None

        self.cache = TVChaosUKCache(self)

        self.search_params = {
            'do': 'search',
            'keywords':  '',
            'search_type': 't_name',
            'category': 0,
            'include_dead_torrents': 'no',
        }
开发者ID:TagForce,项目名称:SickRage,代码行数:26,代码来源:tvchaosuk.py

示例9: __init__

    def __init__(self):
        TorrentProvider.__init__(self, "Strike")

        self.public = True
        self.url = 'https://getstrike.net/'
        self.ratio = 0
        self.cache = StrikeCache(self)
        self.minseed, self.minleech = 2 * [None]
开发者ID:TagForce,项目名称:SickRage,代码行数:8,代码来源:strike.py

示例10: __init__

    def __init__(self):
        TorrentProvider.__init__(self, 'TitansOfTV')

        self.supports_absolute_numbering = True
        self.api_key = None
        self.ratio = None
        self.cache = TitansOfTVCache(self)
        self.url = 'http://titansof.tv/api/torrents'
        self.download_url = 'http://titansof.tv/api/torrents/%s/download?apikey=%s'
开发者ID:TagForce,项目名称:SickRage,代码行数:9,代码来源:titansoftv.py

示例11: __init__

    def __init__(self):

        TorrentProvider.__init__(self, "Cpasbien")

        self.public = True
        self.ratio = None
        self.url = "http://www.cpasbien.io"

        self.proper_strings = ['PROPER', 'REPACK']

        self.cache = CpasbienCache(self)
开发者ID:yenoiwesa,项目名称:SickRage,代码行数:11,代码来源:cpasbien.py

示例12: __init__

    def __init__(self):
        TorrentProvider.__init__(self, "TorrentProject")

        self.public = True
        self.ratio = 0
        self.urls = {'api': u'https://torrentproject.se/',}
        self.url = self.urls['api']
        self.headers.update({'User-Agent': USER_AGENT})
        self.minseed = None
        self.minleech = None
        self.cache = TORRENTPROJECTCache(self)
开发者ID:TagForce,项目名称:SickRage,代码行数:11,代码来源:torrentproject.py

示例13: __init__

    def __init__(self):
        TorrentProvider.__init__(self, "HD4Free")

        self.public = True
        self.url = 'https://hd4free.xyz'
        self.ratio = 0
        self.cache = HD4FREECache(self)
        self.minseed, self.minleech = 2 * [None]
        self.username = None
        self.api_key = None
        self.freeleech = None
开发者ID:yenoiwesa,项目名称:SickRage,代码行数:11,代码来源:hd4free.py

示例14: __init__

    def __init__(self):
        TorrentProvider.__init__(self, "TNTVillage")

        self._uid = None
        self._hash = None
        self.username = None
        self.password = None
        self.ratio = None
        self.cat = None
        self.engrelease = None
        self.page = 10
        self.subtitle = None
        self.minseed = None
        self.minleech = None

        self.hdtext = [' - Versione 720p',
                       ' Versione 720p',
                       ' V 720p',
                       ' V 720',
                       ' V HEVC',
                       ' V  HEVC',
                       ' V 1080',
                       ' Versione 1080p',
                       ' 720p HEVC',
                       ' Ver 720',
                       ' 720p HEVC',
                       ' 720p']

        self.category_dict = {'Serie TV': 29,
                              'Cartoni': 8,
                              'Anime': 7,
                              'Programmi e Film TV': 1,
                              'Documentari': 14,
                              'All': 0}

        self.urls = {'base_url': 'http://forum.tntvillage.scambioetico.org',
                     'login': 'http://forum.tntvillage.scambioetico.org/index.php?act=Login&CODE=01',
                     'detail': 'http://forum.tntvillage.scambioetico.org/index.php?showtopic=%s',
                     'search': 'http://forum.tntvillage.scambioetico.org/?act=allreleases&%s',
                     'search_page': 'http://forum.tntvillage.scambioetico.org/?act=allreleases&st={0}&{1}',
                     'download': 'http://forum.tntvillage.scambioetico.org/index.php?act=Attach&type=post&id=%s'}

        self.url = self.urls['base_url']

        self.cookies = None

        self.sub_string = ['sub', 'softsub']

        self.proper_strings = ['PROPER', 'REPACK']

        self.categories = "cat=29"

        self.cache = TNTVillageCache(self)
开发者ID:TagForce,项目名称:SickRage,代码行数:53,代码来源:tntvillage.py

示例15: __init__

    def __init__(self):

        TorrentProvider.__init__(self, "Torrentz")
        self.public = True
        self.confirmed = True
        self.ratio = None
        self.minseed = None
        self.minleech = None
        self.cache = TORRENTZCache(self)
        self.urls = {'verified': 'https://torrentz.eu/feed_verified',
                     'feed': 'https://torrentz.eu/feed',
                     'base': 'https://torrentz.eu/'}
        self.url = self.urls['base']
开发者ID:TagForce,项目名称:SickRage,代码行数:13,代码来源:torrentz.py


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