def __init__(self): TorrentProvider.__init__(self, "TorrentLeech") self.username = None self.password = None self.ratio = None self.minseed = None self.minleech = None self.urls = { 'base_url': 'https://torrentleech.org/', 'login': '******', 'detail': 'https://torrentleech.org/torrent/%s', 'search': 'https://torrentleech.org/torrents/browse/index/query/%s/categories/%s', 'download': 'https://torrentleech.org%s', 'index': 'https://torrentleech.org/torrents/browse/index/categories/%s' } self.url = self.urls['base_url'] self.categories = "2,7,26,27,32,34,35" self.proper_strings = ['PROPER', 'REPACK'] self.cache = TorrentLeechCache(self)
def __init__(self): TorrentProvider.__init__(self, "Newpct") self.onlyspasearch = None self.cache = newpctCache(self) # Unsupported # self.minseed = None # self.minleech = None self.urls = { 'base_url': 'http://www.newpct.com', 'search': 'http://www.newpct.com/index.php' } self.url = self.urls['base_url'] """ Search query: http://www.newpct.com/index.php?l=doSearch&q=fringe&category_=All&idioma_=1&bus_de_=All q => Show name category_ = Category "Shows" (767) idioma_ = Language Spanish (1) bus_de_ = Date from (All, hoy) """ self.search_params = { 'l': 'doSearch', 'q': '', 'category_': 'All', 'idioma_': 1, 'bus_de_': 'All' }
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': '******', '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)
def __init__(self): TorrentProvider.__init__(self, "AlphaRatio") self.username = None self.password = None self.ratio = None self.minseed = None self.minleech = None self.urls = { 'base_url': 'http://alpharatio.cc/', 'login': '******', 'detail': 'http://alpharatio.cc/torrents.php?torrentid=%s', 'search': 'http://alpharatio.cc/torrents.php?searchstr=%s%s', 'download': 'http://alpharatio.cc/%s' } self.url = self.urls['base_url'] self.categories = "&filter_cat[1]=1&filter_cat[2]=1&filter_cat[3]=1&filter_cat[4]=1&filter_cat[5]=1" self.proper_strings = ['PROPER', 'REPACK'] self.cache = AlphaRatioCache(self)
def __init__(self, name, url, cookies='', titleTAG='title', search_mode='eponly', search_fallback=False, enable_daily=False, enable_backlog=False): TorrentProvider.__init__(self, name) self.cache = TorrentRssCache(self) self.urls = {'base_url': re.sub(r'\/$', '', url)} self.url = self.urls['base_url'] self.ratio = None self.supports_backlog = False self.search_mode = search_mode self.search_fallback = search_fallback self.enable_daily = enable_daily self.enable_backlog = enable_backlog self.cookies = cookies self.titleTAG = titleTAG
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': '******', '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)
def __init__(self): TorrentProvider.__init__(self, "EliteTorrent") self.onlyspasearch = None self.minseed = None self.minleech = None self.cache = elitetorrentCache(self) self.urls = { 'base_url': 'http://www.elitetorrent.net', 'search': 'http://www.elitetorrent.net/torrents.php' } self.url = self.urls['base_url'] """ Search query: http://www.elitetorrent.net/torrents.php?cat=4&modo=listado&orden=fecha&pag=1&buscar=fringe cat = 4 => Shows modo = listado => display results mode orden = fecha => order buscar => Search show pag = 1 => page number """ self.search_params = { 'cat': 4, 'modo': 'listado', 'orden': 'fecha', 'pag': 1, 'buscar': '' }
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': '******', '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}}
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': '******', '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)
def __init__(self): TorrentProvider.__init__(self, "BLUETIGERS") self.username = None self.password = None self.ratio = None self.token = None self.cache = BLUETIGERSCache(self) self.urls = { 'base_url': 'https://www.bluetigers.ca/', 'search': 'https://www.bluetigers.ca/torrents-search.php', 'login': '******', 'download': 'https://www.bluetigers.ca/torrents-details.php?id=%s&hit=1', } self.search_params = { "c16": 1, "c10": 1, "c130": 1, "c131": 1, "c17": 1, "c18": 1, "c19": 1 } self.url = self.urls['base_url']
def __init__(self): TorrentProvider.__init__(self, "FreshOnTV") 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.cache = FreshOnTVCache(self) self.urls = { 'base_url': 'https://freshon.tv/', 'login': '******', 'detail': 'https://freshon.tv/details.php?id=%s', 'search': 'https://freshon.tv/browse.php?incldead=%s&words=0&cat=0&search=%s', 'download': 'https://freshon.tv/download.php?id=%s&type=torrent' } self.url = self.urls['base_url'] self.cookies = None
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)
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': '******', '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)
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
def __init__(self): TorrentProvider.__init__(self, "HDTorrents") self.username = None self.password = None self.ratio = None self.minseed = None self.minleech = None self.urls = { 'base_url': 'https://hd-torrents.org', 'login': '******', 'search': 'https://hd-torrents.org/torrents.php?search=%s&active=1&options=0%s', 'rss': 'https://hd-torrents.org/torrents.php?search=&active=1&options=0%s', 'home': 'https://hd-torrents.org/%s' } self.url = self.urls['base_url'] self.categories = "&category[]=59&category[]=60&category[]=30&category[]=38" self.proper_strings = ['PROPER', 'REPACK'] self.cache = HDTorrentsCache(self)
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': '******', '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 }
def __init__(self): TorrentProvider.__init__(self, 'TvChaosUK') self.urls = {'base_url': 'https://tvchaosuk.com/', 'login': '******', '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', }
def __init__(self): TorrentProvider.__init__(self, 'TvChaosUK') self.urls = { 'base_url': 'https://tvchaosuk.com/', 'login': '******', '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', }
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": "******", "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)
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]
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'
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': '******', '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)
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
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)
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)
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': '******', '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)
def __init__(self): TorrentProvider.__init__(self, "TokyoToshokan") self.public = True self.supports_absolute_numbering = True self.anime_only = True self.ratio = None self.cache = TokyoToshokanCache(self) self.urls = {'base_url': 'http://tokyotosho.info/'} self.url = self.urls['base_url']
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']
def __init__(self): TorrentProvider.__init__(self, "Xthor") self.cj = cookielib.CookieJar() self.url = "https://xthor.bz" self.urlsearch = "https://xthor.bz/browse.php?search=\"%s\"%s" self.categories = "&searchin=title&incldead=0" self.username = None self.password = None self.ratio = None
def __init__(self): TorrentProvider.__init__(self, "BTN") self.supports_absolute_numbering = True self.api_key = None self.ratio = None self.cache = BTNCache(self) self.urls = {'base_url': u'http://api.btnapps.net', 'website': u'http://broadcasthe.net/',} self.url = self.urls['website']
def __init__(self): TorrentProvider.__init__(self, "Rarbg") self.public = True self.ratio = None self.minseed = None self.ranked = None self.sorting = None self.minleech = None self.token = None self.tokenExpireDate = None self.urls = { 'url': u'https://rarbg.com', 'token': u'http://torrentapi.org/pubapi_v2.php?get_token=get_token&format=json&app_id=sickrage2', 'listing': u'http://torrentapi.org/pubapi_v2.php?mode=list&app_id=sickrage2', 'search': u'http://torrentapi.org/pubapi_v2.php?mode=search&app_id=sickrage2&search_string={search_string}', 'search_tvdb': u'http://torrentapi.org/pubapi_v2.php?mode=search&app_id=sickrage2&search_tvdb={tvdb}&search_string={search_string}', 'api_spec': u'https://rarbg.com/pubapi/apidocs.txt' } self.url = self.urls['listing'] self.urlOptions = { 'categories': '&category={categories}', 'seeders': '&min_seeders={min_seeders}', 'leechers': '&min_leechers={min_leechers}', 'sorting': '&sort={sorting}', 'limit': '&limit={limit}', 'format': '&format={format}', 'ranked': '&ranked={ranked}', 'token': '&token={token}' } self.defaultOptions = self.urlOptions['categories'].format(categories='tv') + \ self.urlOptions['limit'].format(limit='100') + \ self.urlOptions['format'].format(format='json_extended') self.proper_strings = ['{{PROPER|REPACK}}'] self.next_request = datetime.datetime.now() self.headers.update({'User-Agent': USER_AGENT}) self.cache = RarbgCache(self)
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']
def __init__(self): TorrentProvider.__init__(self, "Shazbat.tv") self.supports_backlog = False self.passkey = None self.ratio = None self.options = None self.cache = ShazbatCache(self) self.urls = {'base_url': u'http://www.shazbat.tv/', 'website': u'http://www.shazbat.tv/login',} self.url = self.urls['website']
def __init__(self): TorrentProvider.__init__(self, "FNT") self.username = None self.password = None self.ratio = None self.minseed = None self.minleech = None self.cache = FNTCache(self) self.urls = { 'base_url': 'https://fnt.nu', 'search': 'https://www.fnt.nu/torrents/recherche/', 'login': '******', } self.url = self.urls['base_url'] self.search_params = { "afficher": 1, "c118": 1, "c129": 1, "c119": 1, "c120": 1, "c121": 1, "c126": 1, "c137": 1, "c138": 1, "c146": 1, "c122": 1, "c110": 1, "c109": 1, "c135": 1, "c148": 1, "c153": 1, "c149": 1, "c150": 1, "c154": 1, "c155": 1, "c156": 1, "c114": 1, "visible": 1, "freeleech": 0, "nuke": 1, "3D": 0, "sort": "size", "order": "desc" }
def test___init__(self): """ Test __init__ """ self.assertEqual( TorrentProvider('Test Provider').provider_type, GenericProvider.TORRENT)
def __init__(self): TorrentProvider.__init__(self, "HDBits") self.username = None self.passkey = None self.ratio = None self.cache = HDBitsCache(self) self.urls = {'base_url': 'https://hdbits.org', 'search': 'https://hdbits.org/api/torrents', 'rss': 'https://hdbits.org/api/torrents', 'download': 'https://hdbits.org/download.php?'} self.url = self.urls['base_url']
def __init__(self): TorrentProvider.__init__(self, "BTDigg") self.public = True self.ratio = 0 self.urls = {'url': u'https://btdigg.org/', 'api': u'https://api.btdigg.org/api/private-341ada3245790954/s02'} self.proper_strings = ['PROPER', 'REPACK'] self.url = self.urls['url'] # Unsupported # self.minseed = 1 # self.minleech = 0 self.cache = BTDiggCache(self)
def __init__(self): TorrentProvider.__init__(self, "NyaaTorrents") self.public = True self.supports_absolute_numbering = True self.anime_only = True self.ratio = None self.cache = NyaaCache(self) self.urls = {'base_url': 'http://www.nyaa.se/'} self.url = self.urls['base_url'] self.minseed = 0 self.minleech = 0 self.confirmed = False
def __init__(self): TorrentProvider.__init__(self, "HDBits") self.username = None self.passkey = None self.ratio = None self.cache = HDBitsCache(self) self.urls = { 'base_url': 'https://hdbits.org', 'search': 'https://hdbits.org/api/torrents', 'rss': 'https://hdbits.org/api/torrents', 'download': 'https://hdbits.org/download.php?' } self.url = self.urls['base_url']
def __init__(self): TorrentProvider.__init__(self, "ExtraTorrent") self.urls = { 'index': 'http://extratorrent.cc', 'rss': 'http://extratorrent.cc/rss.xml', } self.url = self.urls['index'] self.public = True self.ratio = None self.minseed = None self.minleech = None self.cache = ExtraTorrentCache(self) self.headers.update({'User-Agent': USER_AGENT}) self.search_params = {'cid': 8}
def __init__(self): TorrentProvider.__init__(self, "BitSnoop") self.urls = { 'index': 'http://bitsnoop.com', 'search': 'http://bitsnoop.com/search/video/', 'rss': 'http://bitsnoop.com/new_video.html?fmt=rss' } self.url = self.urls['index'] self.public = True self.ratio = None self.minseed = None self.minleech = None self.proper_strings = ['PROPER', 'REPACK'] self.cache = BitSnoopCache(self)
def __init__(self): TorrentProvider.__init__(self, "BitCannon") self.public = True self.minseed = None self.minleech = None self.ratio = 0 self.custom_url = None self.api_key = None self.cache = BitCannonCache(self) self.search_params = { 'q': '', 'category': 'tv', 'apiKey': '' }
def __init__(self): TorrentProvider.__init__(self, "IPTorrents") self.username = None self.password = None self.ratio = None self.freeleech = False self.minseed = None self.minleech = None self.cache = IPTorrentsCache(self) self.urls = {'base_url': 'https://iptorrents.eu', 'login': '******', 'search': 'https://iptorrents.eu/t?%s%s&q=%s&qf=#torrents'} self.url = self.urls['base_url'] self.categories = '73=&60='
def __init__(self): TorrentProvider.__init__(self, "TransmitTheNet") self.urls = { 'base_url': 'https://transmithe.net/', 'login': '******', 'search': 'https://transmithe.net/torrents.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 = TransmitTheNetCache(self)
def __init__(self): TorrentProvider.__init__(self, "Rarbg") self.public = True self.ratio = None self.minseed = None self.ranked = None self.sorting = None self.minleech = None self.token = None self.tokenExpireDate = None self.urls = {'url': u'https://rarbg.com', 'token': u'http://torrentapi.org/pubapi_v2.php?get_token=get_token&format=json&app_id=sickrage2', 'listing': u'http://torrentapi.org/pubapi_v2.php?mode=list&app_id=sickrage2', 'search': u'http://torrentapi.org/pubapi_v2.php?mode=search&app_id=sickrage2&search_string={search_string}', 'search_tvdb': u'http://torrentapi.org/pubapi_v2.php?mode=search&app_id=sickrage2&search_tvdb={tvdb}&search_string={search_string}', 'api_spec': u'https://rarbg.com/pubapi/apidocs.txt'} self.url = self.urls['listing'] self.urlOptions = {'categories': '&category={categories}', 'seeders': '&min_seeders={min_seeders}', 'leechers': '&min_leechers={min_leechers}', 'sorting' : '&sort={sorting}', 'limit': '&limit={limit}', 'format': '&format={format}', 'ranked': '&ranked={ranked}', 'token': '&token={token}'} self.defaultOptions = self.urlOptions['categories'].format(categories='tv') + \ self.urlOptions['limit'].format(limit='100') + \ self.urlOptions['format'].format(format='json_extended') self.proper_strings = ['{{PROPER|REPACK}}'] self.next_request = datetime.datetime.now() self.headers.update({'User-Agent': USER_AGENT}) self.cache = RarbgCache(self)
def __init__(self): TorrentProvider.__init__(self, "SceneTime") self.username = None self.password = None self.ratio = None self.minseed = None self.minleech = None self.cache = SceneTimeCache(self) self.urls = {'base_url': 'https://www.scenetime.com', 'login': '******', 'detail': 'https://www.scenetime.com/details.php?id=%s', 'search': 'https://www.scenetime.com/browse.php?search=%s%s', 'download': 'https://www.scenetime.com/download.php/%s/%s'} self.url = self.urls['base_url'] self.categories = "&c2=1&c43=13&c9=1&c63=1&c77=1&c79=1&c100=1&c101=1"