本文整理汇总了Python中sickrage.providers.torrent.TorrentProvider.TorrentProvider类的典型用法代码示例。如果您正苦于以下问题:Python TorrentProvider类的具体用法?Python TorrentProvider怎么用?Python TorrentProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了TorrentProvider类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self):
# Provider Init
TorrentProvider.__init__(self, 'ArcheTorrent')
# Credentials
self.username = None
self.password = None
# Torrent Stats
self.minseed = None
self.minleech = None
# Freelech
self.freeleech = False
# URLs
self.url = 'https://www.archetorrent.com/'
self.urls = {
'login': urljoin(self.url, 'account-login.php'),
'search': urljoin(self.url, 'torrents-search.php'),
'download': urljoin(self.url, 'download.php'),
}
# Proper Strings
self.proper_strings = ['PROPER']
# Cache
self.cache = tvcache.TVCache(self, min_time=15)
开发者ID:ArthurGarnier,项目名称:SickRage,代码行数:29,代码来源:archetorrent.py
示例2: __init__
def __init__(self):
# Provider Init
TorrentProvider.__init__(self, 'ABNormal')
# Credentials
self.username = None
self.password = None
# Torrent Stats
self.minseed = None
self.minleech = None
# URLs
self.url = 'https://abnormal.ws'
self.urls = {
'login': urljoin(self.url, 'login.php'),
'search': urljoin(self.url, 'torrents.php'),
}
# Proper Strings
self.proper_strings = ['PROPER']
# Cache
self.cache = tvcache.TVCache(self, min_time=30)
开发者ID:ArthurGarnier,项目名称:SickRage,代码行数:25,代码来源:abnormal.py
示例3: __init__
def __init__(self):
# Provider Init
TorrentProvider.__init__(self, "Danishbits")
# Credentials
self.username = None
self.password = None
# Torrent Stats
self.ratio = None
self.minseed = 0
self.minleech = 0
self.freeleech = True
# URLs
self.url = 'https://danishbits.org'
self.urls = {
'login': self.url + '/login.php',
'search': self.url + '/torrents.php',
}
# Proper Strings
# Cache
self.cache = tvcache.TVCache(self, min_time=10) # Only poll Danishbits every 10 minutes max
开发者ID:pedro2d10,项目名称:SickRageFR,代码行数:26,代码来源:danishbits.py
示例4: __init__
def __init__(self):
# Provider Init
TorrentProvider.__init__(self, "TorrentLeech")
# Credentials
self.username = None
self.password = None
# Torrent Stats
self.minseed = None
self.minleech = None
# URLs
self.url = "https://torrentleech.org"
self.urls = {
"login": urljoin(self.url, "user/account/login/"),
"search": urljoin(self.url, "torrents/browse"),
}
# Proper Strings
self.proper_strings = ["PROPER", "REPACK"]
# Cache
self.cache = tvcache.TVCache(self)
开发者ID:ratoaq2,项目名称:SickRageSickRage,代码行数:25,代码来源:torrentleech.py
示例5: __init__
def __init__(self):
# Provider Init
TorrentProvider.__init__(self, "TransmitTheNet")
# Credentials
self.username = None
self.password = None
# Torrent Stats
self.minseed = None
self.minleech = None
self.freeleech = None
# URLs
self.url = 'https://transmithe.net/'
self.urls = {
'login': urljoin(self.url, '/login.php'),
'search': urljoin(self.url, '/torrents.php'),
}
# Proper Strings
# Cache
self.cache = tvcache.TVCache(self)
开发者ID:bitzorro,项目名称:SickRage,代码行数:25,代码来源:transmitthenet.py
示例6: __init__
def __init__(self):
# Provider Init
TorrentProvider.__init__(self, "ThePirateBay")
# Credentials
self.public = True
# Torrent Stats
self.minseed = None
self.minleech = None
self.confirmed = True
# URLs
self.url = "https://thepiratebay.se"
self.urls = {
"rss": urljoin(self.url, "browse/200"),
"search": urljoin(self.url, "s/"), # Needs trailing /
}
self.custom_url = None
# Proper Strings
# Cache
self.cache = tvcache.TVCache(self, min_time=30) # only poll ThePirateBay every 30 minutes max
开发者ID:Comptezero,项目名称:SickRage,代码行数:25,代码来源:thepiratebay.py
示例7: __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 = tvcache.TVCache(self, min_time=10) # Only poll IPTorrents every 10 minutes max
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:lastdevonearth,项目名称:SickRage,代码行数:28,代码来源:torrentday.py
示例8: __init__
def __init__(self):
# Provider Init
TorrentProvider.__init__(self, 'YggTorrent')
# Credentials
self.username = None
self.password = None
# Torrent Stats
self.minseed = None
self.minleech = None
# URLs
self.custom_url = None
self.url = 'https://www.yggtorrent.is/'
self.urls = {
'login': urljoin(self.url, 'user/login'),
'search': urljoin(self.url, 'engine/search')
}
# Proper Strings
self.proper_strings = ['PROPER']
# Cache
self.cache = tvcache.TVCache(self, min_time=30)
开发者ID:shtrom,项目名称:SickRage,代码行数:26,代码来源:yggtorrent.py
示例9: __init__
def __init__(self):
# Provider Init
TorrentProvider.__init__(self, 'HoundDawgs')
# Credentials
self.username = None
self.password = None
# URLs
self.url = 'https://hounddawgs.org'
self.urls = {
'base_url': self.url,
'search': urljoin(self.url, 'torrents.php'),
'login': urljoin(self.url, 'login.php'),
}
# Proper Strings
# Miscellaneous Options
self.freeleech = None
self.ranked = None
# Torrent Stats
self.minseed = None
self.minleech = None
# Cache
self.cache = tvcache.TVCache(self)
开发者ID:Eiber,项目名称:SickRage-Medusa,代码行数:29,代码来源:hounddawgs.py
示例10: __init__
def __init__(self):
# Provider Init
TorrentProvider.__init__(self, "ThePirateBay")
# Credentials
self.public = True
# Torrent Stats
self.minseed = None
self.minleech = None
self.confirmed = True
# URLs
self.url = "https://thepiratebay.se"
self.urls = {
"rss": [urljoin(self.url, "browse/208/0/4/0"), urljoin(self.url, "browse/205/0/4/0")],
"search": urljoin(self.url, "search"),
}
self.custom_url = None
# Proper Strings
# Cache
self.cache = tvcache.TVCache(self, min_time=30) # only poll ThePirateBay every 30 minutes max
self.magnet_regex = re.compile(r'magnet:\?xt=urn:btih:\w{32,40}(:?&dn=[\w. %+-]+)*(:?&tr=(:?tcp|https?|udp)[\w%. +-]+)*')
开发者ID:Zelgadis87,项目名称:SickRage,代码行数:27,代码来源:thepiratebay.py
示例11: __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:madtrix74,项目名称:SickRage,代码行数:30,代码来源:kat.py
示例12: __init__
def __init__(self):
# Provider Init
TorrentProvider.__init__(self, 'Speedcd')
# Credentials
self.username = None
self.password = None
# URLs
self.url = 'https://speed.cd'
self.urls = {
'login': urljoin(self.url, 'takelogin.php'),
'search': urljoin(self.url, 'browse.php'),
}
# Proper Strings
self.proper_strings = ['PROPER', 'REPACK']
# Miscellaneous Options
self.freeleech = False
# Torrent Stats
self.minseed = None
self.minleech = None
# Cache
self.cache = tvcache.TVCache(self)
开发者ID:Eiber,项目名称:SickRage-Medusa,代码行数:28,代码来源:speedcd.py
示例13: __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 = tvcache.TVCache(self, min_time=30) # only poll TNTVillage every 30 minutes max
开发者ID:pedro2d10,项目名称:SickRageFR,代码行数:60,代码来源:tntvillage.py
示例14: __init__
def __init__(self):
# Provider Init
TorrentProvider.__init__(self, "T411")
# Credentials
self.username = None
self.password = None
self.token = None
self.tokenLastUpdate = None
# URLs
self.url = 'https://api.t411.ch'
self.urls = {
'base_url': 'http://www.t411.ch/',
'search': urljoin(self.url, 'torrents/search/%s*?cid=%s&limit=100'),
'rss': urljoin(self.url, 'torrents/top/today'),
'login_page': urljoin(self.url, 'auth'),
'download': urljoin(self.url, 'torrents/download/%s'),
}
# Proper Strings
# Miscellaneous Options
self.headers.update({'User-Agent': USER_AGENT})
self.subcategories = [433, 637, 455, 639]
self.confirmed = False
# Torrent Stats
self.minseed = 0
self.minleech = 0
# Cache
self.cache = tvcache.TVCache(self, min_time=10) # Only poll T411 every 10 minutes max
开发者ID:Eiber,项目名称:SickRage-Medusa,代码行数:34,代码来源:t411.py
示例15: __init__
def __init__(self):
# Provider Init
TorrentProvider.__init__(self, "Speedcd")
# Credentials
self.username = None
self.password = None
# Torrent Stats
self.ratio = None
self.minseed = None
self.minleech = None
self.freeleech = False
# URLs
self.url = 'https://speed.cd'
self.urls = {
'login': self.url + '/take.login.php',
'search': self.url + '/browse.php',
}
# Proper Strings
self.proper_strings = ['PROPER', 'REPACK']
# Cache
self.cache = tvcache.TVCache(self)
开发者ID:Hydrog3n,项目名称:SickRage,代码行数:27,代码来源:speedcd.py
示例16: __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:madtrix74,项目名称:SickRage,代码行数:26,代码来源:morethantv.py
示例17: __init__
def __init__(self):
# Provider Init
TorrentProvider.__init__(self, "Torrentz")
# Credentials
self.public = True
self.confirmed = True
# Torrent Stats
self.minseed = None
self.minleech = None
# URLs
self.url = 'https://torrentz.eu/'
self.urls = {
'verified': 'https://torrentz.eu/feed_verified',
'feed': 'https://torrentz.eu/feed',
'base': self.url,
}
self.headers.update({'User-Agent': USER_AGENT})
# Proper Strings
# Cache
self.cache = tvcache.TVCache(self, min_time=15) # only poll Torrentz every 15 minutes max
开发者ID:DazzFX,项目名称:SickRage,代码行数:26,代码来源:torrentz.py
示例18: __init__
def __init__(self):
# Provider Init
TorrentProvider.__init__(self, 'MoreThanTV')
# Credentials
self.username = None
self.password = None
self._uid = None
self._hash = None
# URLs
self.url = 'https://www.morethan.tv/'
self.urls = {
'login': urljoin(self.url, 'login.php'),
'search': urljoin(self.url, 'torrents.php'),
}
# Proper Strings
self.proper_strings = ['PROPER', 'REPACK']
# Miscellaneous Options
# Torrent Stats
self.minseed = None
self.minleech = None
# Cache
self.cache = tvcache.TVCache(self)
开发者ID:Eiber,项目名称:SickRage-Medusa,代码行数:29,代码来源:morethantv.py
示例19: __init__
def __init__(self):
TorrentProvider.__init__(self, "TorrentBytes")
self.username = None
self.password = None
self.ratio = None
self.minseed = None
self.minleech = None
self.freeleech = False
self.urls = {
'base_url': 'https://www.torrentbytes.net',
'login': 'https://www.torrentbytes.net/takelogin.php',
'detail': 'https://www.torrentbytes.net/details.php?id=%s',
'search': 'https://www.torrentbytes.net/browse.php?search=%s%s',
'download': 'https://www.torrentbytes.net/download.php?id=%s&name=%s'
}
self.url = self.urls['base_url']
self.categories = "&c41=1&c33=1&c38=1&c32=1&c37=1"
self.proper_strings = ['PROPER', 'REPACK']
self.cache = TorrentBytesCache(self)
开发者ID:allan84,项目名称:SickRage,代码行数:26,代码来源:torrentbytes.py
示例20: __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 = tvcache.TVCache(self) # only poll SCC every 20 minutes max
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:lastdevonearth,项目名称:SickRage,代码行数:27,代码来源:scc.py
注:本文中的sickrage.providers.torrent.TorrentProvider.TorrentProvider类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论