Example #1
0
 def __init__(self):
     self.api_key = PremiumizeMeResolver.get_setting('password')
     self.priority = 1
     self.language = ['en']
     self.domain = 'https://1337xx.top'
     self.search_link = 'https://1337xx.top/search.php?q=%s'
     self.checkc = 'https://www.premiumize.me/api/torrent/checkhashes?apikey=%s&hashes[]=%s&apikey=%s'
     self.pr_link = 'https://www.premiumize.me/api/transfer/directdl?apikey=%s&src=magnet:?xt=urn:btih:%s'
Example #2
0
 def __init__(self):
     self.priority = 0
     self.language = ['en']
     self.domain = 'http://www.magnetdl.com'
     self.api_key = PremiumizeMeResolver.get_setting('password')
     self.search_link = 'http://www.magnetdl.com/%s/%s/'
     self.checkc = 'https://www.premiumize.me/api/torrent/checkhashes?apikey=%s&hashes[]=%s&apikey=%s'
     self.pr_link = 'https://www.premiumize.me/api/transfer/directdl?apikey=%s&src=magnet:?xt=urn:btih:%s'
Example #3
0
 def __init__(self):
     self.priority = 1
     self.language = ['en']
     self.domain = 'https://Torrentapi.top'
     self.api_key = PremiumizeMeResolver.get_setting('password')
     self.tvsearch = 'https://torrentapi.org//pubapi_v2.php?app_id=exodus&mode=search&search_string=%s&category=tv&ranked=0&token=%s'
     self.msearch = 'https://torrentapi.org//pubapi_v2.php?app_id=exodus&mode=search&search_string=%s&category=movies&ranked=0&token=%s'
     self.tokenta = 'https://torrentapi.org//pubapi_v2.php?app_id=exodus&get_token=get_token'
     self.checkc = 'https://www.premiumize.me/api/torrent/checkhashes?apikey=%s&hashes[]=%s&apikey=%s'
     self.pr_link = 'https://www.premiumize.me/api/transfer/directdl?apikey=%s&src=magnet:?xt=urn:btih:%s'
Example #4
0
 def __init__(self):
     self.priority = 0
     self.language = ['en']
     self.domain = 'https://Torrentapi.top'
     self.api_key = PremiumizeMeResolver.get_setting('password')
     self.tvsearch = 'https://torrentapi.org//pubapi_v2.php?app_id=exodus&mode=search&search_string=%s&category=tv&ranked=0&token=%s'
     self.msearch = 'https://torrentapi.org//pubapi_v2.php?app_id=exodus&mode=search&search_string=%s&category=movies&ranked=0&token=%s'
     self.tokenta = 'https://torrentapi.org//pubapi_v2.php?app_id=exodus&get_token=get_token'
     self.checkc = 'https://www.premiumize.me/api/torrent/checkhashes?apikey=%s&hashes[]=%s&apikey=%s'
     self.pr_link = 'https://www.premiumize.me/api/transfer/directdl?apikey=%s&src=magnet:?xt=urn:btih:%s'
	Venom Add-on
'''

import re
import requests
try:
	from urllib import quote_plus, urlencode
except:
	from urllib.parse import quote_plus, urlencode

from resources.lib.modules import control
from resources.lib.modules import log_utils

try:
	from resolveurl.plugins.premiumize_me import PremiumizeMeResolver
	token = PremiumizeMeResolver.get_setting('token')
except:
	pass

CLIENT_ID = '522962560'
USER_AGENT = 'ResolveURL for Kodi/%s' % control.getKodiVersion()

BaseUrl = "https://www.premiumize.me/api"
DirectDownload = '%s/transfer/directdl' % BaseUrl
AccountURL = "%s/account/info" % BaseUrl
ListFolder = "%s/folder/list" % BaseUrl
ItemDetails = "%s/item/details" % BaseUrl
TransferList = "%s/transfer/list" % BaseUrl
TransferCreate = "%s/transfer/create" % BaseUrl
TransferDelete = "%s/transfer/delete" % BaseUrl
CacheCheck = '%s/cache/check' % BaseUrl