def __init__(self): self.net = common.Net()
GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. reusable captcha methods """ from resolveurl import common import re import xbmcgui import os import recaptcha_v2 import helpers import resolveurl net = common.Net() IMG_FILE = 'captcha_img.gif' def get_response(img): try: img = xbmcgui.ControlImage(450, 0, 400, 130, img) wdlg = xbmcgui.WindowDialog() wdlg.addControl(img) wdlg.show() common.kodi.sleep(3000) solution = common.kodi.get_keyboard(common.i18n('letters_image')) if not solution: raise Exception('captcha_error') finally: wdlg.close()
def __init__(self): self.net = common.Net(ssl_verify=False)
def __init__(self): self.net = common.Net() self.UA = common.RAND_UA
def __init__(self): self.net = common.Net() self.headers = {'User-Agent': common.SMR_USER_AGENT}
def __init__(self): self.hosts = [] self.patterns = [] self.net = common.Net()
def __init__(self): self.net = common.Net() self.user_agent = common.EDGE_USER_AGENT self.net.set_user_agent(self.user_agent) self.headers = {'User-Agent': self.user_agent}
def __init__(self): self.net = common.Net() self.headers = {'User-Agent': common.RAND_UA}
def __init__(self): self.net = common.Net() self.hosters = None self.hosts = None self.headers = {'User-Agent': USER_AGENT}
def __init__(self): self.net = common.Net() try: os.makedirs(os.path.dirname(self.cookie_file)) except OSError: pass
def __init__(self): self.net = common.Net() self.scheme = 'https' self.api_base = '%s://rapidgator.net/api' % (self.scheme) self._session_id = ''
def __init__(self): self.hosts = [] self.patterns = [] self.net = common.Net() self.scheme = 'https' if self.get_setting('use_https') == 'true' else 'http'
def __init__(self): self.net = common.Net() self.headers = {'User-Agent': common.FF_USER_AGENT} self.url_matches = [ 'redirector.', 'googleusercontent', '.bp.blogspot.com' ] self.itag_map = { '5': '240', '6': '270', '17': '144', '18': '360', '22': '720', '34': '360', '35': '480', '36': '240', '37': '1080', '38': '3072', '43': '360', '44': '480', '45': '720', '46': '1080', '82': '360 [3D]', '83': '480 [3D]', '84': '720 [3D]', '85': '1080p [3D]', '100': '360 [3D]', '101': '480 [3D]', '102': '720 [3D]', '92': '240', '93': '360', '94': '480', '95': '720', '96': '1080', '132': '240', '151': '72', '133': '240', '134': '360', '135': '480', '136': '720', '137': '1080', '138': '2160', '160': '144', '264': '1440', '298': '720', '299': '1080', '266': '2160', '167': '360', '168': '480', '169': '720', '170': '1080', '218': '480', '219': '480', '242': '240', '243': '360', '244': '480', '245': '480', '246': '480', '247': '720', '248': '1080', '271': '1440', '272': '2160', '302': '2160', '303': '1080', '308': '1440', '313': '2160', '315': '2160', '59': '480' }
def __init__(self): self.net = common.Net() self.base_url = 'https://debrid-link.fr/api' self.hosts = None