def resolve(url): try: headers = '|%s' % urllib.urlencode({ 'User-Agent': client.agent(), 'Referer': url }) url = re.compile('//.+?/(?:video|embed)/([0-9a-zA-Z-_]+)').findall( url)[0] url = 'http://videowood.tv/embed/%s' % url result = client.request(url) result = re.compile('(eval.*?)\n').findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, 'embed', ret='src') url += re.compile( "[\'|\"]file[\'|\"] *: *[\'|\"](.+?)[\'|\"]").findall(result) url = [ i.replace('\\', '') for i in url if not i.endswith(('.srt', '.png', '.jpg')) ] url = 'http://' + url[0].split('://', 1)[-1] url += headers return url except: return
def resolve(self, data): try: hostURL = None DELAY_PER_REQUEST = 1000 # In milliseconds. startTime = datetime.now() session = self._createSession(data['UA'], data['cookies'], data['referer']) r = self._sessionGET(data['pageURL'], session, allowRedirects=False) if r.ok: if 'Location' in r.headers: hostURL = r.headers[ 'Location'] # For most hosts they redirect. else: # On rare cases they JS-pack the host link in the page source. try: hostURL = re.search(r'''go\(\\['"](.*?)\\['"]\);''', jsunpack.unpack(r.text)).group(1) except: pass # Or sometimes their page is just broken. # Do a little delay, if necessary, between resolve() calls. elapsed = int((datetime.now() - startTime).total_seconds() * 1000) if elapsed < DELAY_PER_REQUEST: xbmc.sleep(max(DELAY_PER_REQUEST - elapsed, 100)) return hostURL except: self._logException() return None
def resolve(url): try: url = url.replace('/embed-', '/') url = re.compile('//.+?/([\w]+)').findall(url)[0] url = 'http://grifthost.com/embed-%s.html' % url result = client.request(url) try: post = {} f = client.parseDOM(result, 'Form', attrs = {'method': 'POST'})[0] f = f.replace('"submit"', '"hidden"') k = client.parseDOM(f, 'input', ret='name', attrs = {'type': 'hidden'}) for i in k: post.update({i: client.parseDOM(f, 'input', ret='value', attrs = {'name': i})[0]}) post = urllib.urlencode(post) result = client.request(url, post=post) except: pass result = re.compile('(eval.*?\)\)\))').findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, 'embed', ret='src') url += re.compile("file *: *[\'|\"](.+?)[\'|\"]").findall(result) url = [i for i in url if not i.endswith('.srt')] url = 'http://' + url[0].split('://', 1)[-1] return url except: return
def resolve(url): try: url = url.replace("/embed-", "/") url = re.compile("//.+?/([\w]+)").findall(url)[0] url = "http://divxpress.com/embed-%s.html" % url result = client.request(url, close=False) post = {} f = client.parseDOM(result, "form", attrs={"method": "POST"})[0] k = client.parseDOM(f, "input", ret="name", attrs={"type": "hidden"}) for i in k: post.update({i: client.parseDOM(f, "input", ret="value", attrs={"name": i})[0]}) post = urllib.urlencode(post) result = client.request(url, post=post) result = re.compile("(eval.*?\)\)\))").findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, "embed", ret="src") url += re.compile("'file' *, *'(.+?)'").findall(result) url = [i for i in url if not i.endswith(".srt")] url = "http://" + url[0].split("://", 1)[-1] return url except: return
def resolve(url): try: url = url.replace("/embed-", "/") url = re.compile("//.+?/([\w]+)").findall(url)[0] url = "http://grifthost.com/embed-%s.html" % url result = client.request(url) try: post = {} f = client.parseDOM(result, "Form", attrs={"method": "POST"})[0] f = f.replace('"submit"', '"hidden"') k = client.parseDOM(f, "input", ret="name", attrs={"type": "hidden"}) for i in k: post.update({i: client.parseDOM(f, "input", ret="value", attrs={"name": i})[0]}) post = post result = client.request(url, post=post) except: pass result = re.compile("(eval.*?\)\)\))").findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, "embed", ret="src") url += re.compile("file *: *['|\"](.+?)['|\"]").findall(result) url = [i for i in url if not i.endswith(".srt")] url = "http://" + url[0].split("://", 1)[-1] return url except: return
def resolve(url): try: headers = '|%s' % urllib.urlencode({'User-Agent': client.agent(), 'Referer': url}) url = url.replace('/embed-', '/') url = re.compile('//.+?/([\w]+)').findall(url)[0] url = 'http://letwatch.us/embed-%s.html' % url result = client.request(url) unpacked = '' packed = result.split('\n') for i in packed: try: unpacked += jsunpack.unpack(i) except: unpacked += i result = re.sub('\s\s+', ' ', unpacked) url = client.parseDOM(result, 'embed', ret='src') url += re.compile("file *: *[\'|\"](http.+?)[\'|\"]").findall(result) url = [i for i in url if not i.endswith('.srt')] url = 'http://' + url[0].split('://', 1)[-1] url += headers return url except: return
def resolve(url): try: headers = '|%s' % urllib.urlencode({'User-Agent': client.agent(), 'Referer': url}) url = urlparse.urlparse(url).query url = urlparse.parse_qsl(url)[0][1] url = 'http://videomega.tv/cdn.php?ref=%s' % url result = client.request(url) unpacked = '' packed = result.split('\n') for i in packed: try: unpacked += jsunpack.unpack(i) except: unpacked += i result = unpacked result = re.sub('\s\s+', ' ', result) url = re.compile('"video".+?"src"\s*\,\s*"(.+?)"').findall(result) url += client.parseDOM(result, 'source', ret='src', attrs = {'type': 'video.+?'}) url = url[0] + headers return url except: return
def resolve(url): try: headers = '|%s' % urllib.urlencode({ 'User-Agent': client.agent(), 'Referer': url }) url = url.replace('/embed-', '/') url = re.compile('//.+?/([\w]+)').findall(url)[0] url = 'http://www.mightyupload.com/embed-%s.html' % url result = client.request(url, mobile=True) url = re.compile("file *: *'(.+?)'").findall(result) if len(url) > 0 and url[0].startswith('http'): return url[0] + headers result = re.compile('(eval.*?\)\)\))').findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, 'embed', ret='src') url += re.compile("file *: *[\'|\"](.+?)[\'|\"]").findall(result) url = [i for i in url if not i.endswith('.srt')] url = 'http://' + url[0].split('://', 1)[-1] url += headers return url except: return
def resolve(url): try: url = re.compile('//.+?/([\w]+)').findall(url)[0] url = 'http://180upload.com/embed-%s.html' % url result = client.request(url) post = {} f = client.parseDOM(result, 'form', attrs = {'id': 'captchaForm'})[0] k = client.parseDOM(f, 'input', ret='name', attrs = {'type': 'hidden'}) for i in k: post.update({i: client.parseDOM(f, 'input', ret='value', attrs = {'name': i})[0]}) post = urllib.urlencode(post) result = client.request(url, post=post) result = re.compile('(eval.*?\)\)\))').findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, 'embed', ret='src') url += re.compile("'file' *, *'(.+?)'").findall(result) url = [i for i in url if not i.endswith('.srt')] url = 'http://' + url[0].split('://', 1)[-1] return url except: return
def resolve(url): try: headers = "|%s" % urllib.urlencode({"User-Agent": client.agent(), "Referer": url}) url = url.replace("/embed-", "/") url = re.compile("//.+?/([\w]+)").findall(url)[0] url = "http://vid.ag/embed-%s.html" % url result = client.request(url, mobile=True) result = re.compile("(eval.*?\)\)\))").findall(result)[-1] result = jsunpack.unpack(result) result = re.compile("sources *: *\[.+?\]").findall(result)[-1] result = re.compile('file *: *"(http.+?)"').findall(result) url = [i for i in result if ".m3u8" in i] if len(url) > 0: return url[0] + headers url = [i for i in result if not ".m3u8" in i] if len(url) > 0: return url[0] + headers except: return
def decode(html): source = None err = '' try: try: str_pattern="(eval\(function\(p,a,c,k,e,(?:r|d).*)" js = re.compile(str_pattern).findall(html) if len(js) == 0: raise Exception('No packer js found.') js = js[0] if 'p,a,c,k,e,' not in js: raise Exception('No packer js found.') html_with_unpacked_js = jsunpack.unpack(js) if html_with_unpacked_js == None: raise Exception('Could not unpack js.') source = re.findall(r':\"(http.*.mp4)\"', html_with_unpacked_js) except Exception as e: log('ERROR', 'decode', '%s' % (e), dolog=True) err = 'Mp4Upload Error: %s' % e if source != None and len(source) == 0: raise Exception('No mp4 Videos found !') except Exception as e: err = 'Mp4Upload Error: %s' % e return source, err
def resolve(url): try: url = url.replace('/embed-', '/') url = re.compile('//.+?/([\w]+)').findall(url)[0] url = 'http://allvid.ch/embed-%s.html' % url result = client.request(url) r = re.compile('file\s*:\s*"(.+?)".+?label\s*:\s*"(\d+)"').findall(result) if len(r) == 0: r = re.compile('(eval.*?\)\)\))').findall(result)[-1] r = jsunpack.unpack(r) r = re.compile('file\s*:\s*"(.+?)".+?label\s*:\s*"(\d+)"').findall(r) url = [] try: url.append({'quality': '1080p', 'url': [i[0] for i in r if int(i[1]) >= 1080][0]}) except: pass try: url.append({'quality': 'HD', 'url': [i[0] for i in r if 720 <= int(i[1]) < 1080][0]}) except: pass try: url.append({'quality': 'SD', 'url': [i[0] for i in r if int(i[1]) < 720][0]}) except: pass return url except: return
def resolve(url): try: try: referer = urlparse.parse_qs(urlparse.urlparse(url).query)['referer'][0] except: referer=url id = urlparse.parse_qs(urlparse.urlparse(url).query)['u'][0] url = 'http://www.finecast.tv/embed4.php?u=%s&vw=640&vh=450'%id result = client.request(url, referer=referer, mobile = True) unpacked = '' packed = result.split('\n') for i in packed: try: unpacked += jsunpack.unpack(i) except: pass result += unpacked var = re.compile('var\s(.+?)\s*=\s*(?:\'|\"|\s*)(.+?)(?:\'|\"|\s*);').findall(result) url = re.compile('file\s*:\s*(.+?)\n').findall(result) url = [i.split("'") for i in url] url = [[x.replace('+','').replace(',','') for x in i if not x == ''] for i in url] url = [[x.replace(x,[v[1] for v in var if v[0] == x][0]) if len([v[1] for v in var if v[0] == x]) > 0 else x for x in i] for i in url] url = [''.join(i) for i in url] url = [i for i in url if i.startswith('rtmp') or '.m3u8' in i] url = random.choice(url) if url.startswith('rtmp'): url += ' swfUrl=http://www.finecast.tv/player6/jwplayer.flash.swf flashver=WIN\2020,0,0,228 live=1 timeout=14 swfVfy=1 pageUrl=http://www.finecast.tv/' return url except: return
def resolve(url): try: page = re.compile('//.+?/(?:embed|v)/([0-9a-zA-Z-_]+)').findall(url)[0] page = 'http://sawlive.tv/embed/%s' % page try: referer = urlparse.parse_qs(urlparse.urlparse(url).query)['referer'][0] except: referer = page result = client.request(page, referer=referer) unpacked = '' packed = result.split('\n') for i in packed: try: unpacked += jsunpack.unpack(i) except: pass result += unpacked result = urllib.unquote_plus(result) result = re.compile('<iframe(.+?)</iframe>').findall(result)[-1] url = re.compile('src\s*=\s*[\'|\"](.+?)[\'|\"].+?[\'|\"](.+?)[\'|\"]').findall(result)[0] url = '/'.join(url) result = client.request(url, referer=referer) strm = re.compile("'streamer'.+?'(.+?)'").findall(result)[0] file = re.compile("'file'.+?'(.+?)'").findall(result)[0] swf = re.compile("SWFObject\('(.+?)'").findall(result)[0] url = '%s playpath=%s swfUrl=%s pageUrl=%s live=1 timeout=30' % (strm, file, swf, url) return url except: return
def resolve(url): try: headers = '|%s' % urllib.urlencode({ 'User-Agent': client.agent(), 'Referer': url }) url = url.replace('/embed-', '/') url = re.compile('//.+?/([\w]+)').findall(url)[0] url = 'http://vid.ag/embed-%s.html' % url result = client.request(url, mobile=True) result = re.compile('(eval.*?\)\)\))').findall(result)[-1] result = jsunpack.unpack(result) result = re.compile('sources *: *\[.+?\]').findall(result)[-1] result = re.compile('file *: *"(http.+?)"').findall(result) url = [i for i in result if '.m3u8' in i] if len(url) > 0: return url[0] + headers url = [i for i in result if not '.m3u8' in i] if len(url) > 0: return url[0] + headers except: return
def resolve(url): try: url = url.replace('/video/', '/embed/') result = client.request(url) unpacked = '' packed = result.split('\n') for i in packed: try: unpacked += jsunpack.unpack(i) except: pass result += unpacked result = re.sub('\s\s+', ' ', result) var = re.compile('var\s(.+?)\s*=\s*\'(.+?)\'').findall(result) for i in range(100): for v in var: result = result.replace("' %s '" % v[0], v[1]).replace("'%s'" % v[0], v[1]) url = re.compile('sources\s*:\s*\[.+?file\s*:\s*(.+?)\s*\,').findall( result)[0] var = re.compile('var\s+%s\s*=\s*\'(.+?)\'' % url).findall(result) if len(var) > 0: url = var[0].strip() if url.startswith('http'): return url except: return
def resolve(url): try: result = client.request(url, mobile=True, close=False) try: post = {} f = client.parseDOM(result, 'Form', attrs = {'method': 'POST'})[0] f = f.replace('"submit"', '"hidden"') k = client.parseDOM(f, 'input', ret='name', attrs = {'type': 'hidden'}) for i in k: post.update({i: client.parseDOM(f, 'input', ret='value', attrs = {'name': i})[0]}) except: post=None for i in range(0, 10): try: result = client.request(url, post=post, mobile=True, close=False) result = result.replace('\n','') result = re.compile('(eval.*?\)\)\))').findall(result)[-1] result = jsunpack.unpack(result) result = re.compile('sources *: *\[.+?\]').findall(result)[-1] result = re.compile('file *: *"(http.+?)"').findall(result) url = [i for i in result if not '.m3u8' in i] if len(url) > 0: return '%s|Referer=%s' % (url[0], urllib.quote_plus('http://vidzi.tv/nplayer/jwplayer.flash.swf')) url = [i for i in result if '.m3u8' in i] if len(url) > 0: return url[0] except: time.sleep(1) except: return
def resolve(url): try: headers = '|%s' % urllib.urlencode({ 'User-Agent': client.agent(), 'Referer': url }) url = urlparse.urlparse(url).query url = urlparse.parse_qsl(url)[0][1] url = 'http://videomega.tv/cdn.php?ref=%s' % url result = client.request(url) unpacked = '' packed = result.split('\n') for i in packed: try: unpacked += jsunpack.unpack(i) except: unpacked += i result = unpacked result = re.sub('\s\s+', ' ', result) url = re.compile('"video".+?"src"\s*\,\s*"(.+?)"').findall(result) url += client.parseDOM(result, 'source', ret='src', attrs={'type': 'video.+?'}) url = url[0] + headers return url except: return
def resolve(url): try: url = url.replace('/embed-', '/') url = re.compile('//.+?/([\w]+)').findall(url)[0] url = 'http://grifthost.com/embed-%s.html' % url result = client.request(url) try: post = {} f = client.parseDOM(result, 'Form', attrs = {'method': 'POST'})[0] f = f.replace('"submit"', '"hidden"') k = client.parseDOM(f, 'input', ret='name', attrs = {'type': 'hidden'}) for i in k: post.update({i: client.parseDOM(f, 'input', ret='value', attrs = {'name': i})[0]}) post = post result = client.request(url, post=post) except: pass result = re.compile('(eval.*?\)\)\))').findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, 'embed', ret='src') url += re.compile("file *: *[\'|\"](.+?)[\'|\"]").findall(result) url = [i for i in url if not i.endswith('.srt')] url = 'http://' + url[0].split('://', 1)[-1] return url except: return
def resolve(url): try: headers = '|%s' % urllib.urlencode({ 'User-Agent': client.agent(), 'Referer': url }) url = url.replace('/embed-', '/') url = re.compile('//.+?/([\w]+)').findall(url)[0] url = 'http://letwatch.us/embed-%s.html' % url result = client.request(url) unpacked = '' packed = result.split('\n') for i in packed: try: unpacked += jsunpack.unpack(i) except: unpacked += i result = re.sub('\s\s+', ' ', unpacked) url = client.parseDOM(result, 'embed', ret='src') url += re.compile("file *: *[\'|\"](http.+?)[\'|\"]").findall(result) url = [i for i in url if not i.endswith('.srt')] url = 'http://' + url[0].split('://', 1)[-1] url += headers return url except: return
def resolve(url): try: url = url.replace('/embed-', '/') url = re.compile('//.+?/([\w]+)').findall(url)[0] url = 'http://divxpress.com/embed-%s.html' % url result = client.request(url, close=False) post = {} f = client.parseDOM(result, 'form', attrs = {'method': 'POST'})[0] k = client.parseDOM(f, 'input', ret='name', attrs = {'type': 'hidden'}) for i in k: post.update({i: client.parseDOM(f, 'input', ret='value', attrs = {'name': i})[0]}) post = post result = client.request(url, post=post) result = re.compile('(eval.*?\)\)\))').findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, 'embed', ret='src') url += re.compile("'file' *, *'(.+?)'").findall(result) url = [i for i in url if not i.endswith('.srt')] url = 'http://' + url[0].split('://', 1)[-1] return url except: return
def resolve(url): try: url = re.compile("//.+?/([\w]+)").findall(url)[0] url = "http://www.movdivx.com/%s" % url result = client.request(url) post = {} f = client.parseDOM(result, "Form", attrs={"action": ""})[0] k = client.parseDOM(f, "input", ret="name", attrs={"type": "hidden"}) for i in k: post.update({i: client.parseDOM(f, "input", ret="value", attrs={"name": i})[0]}) post.update({"method_free": "Free Download"}) result = client.request(url, post=post) result = re.compile("(eval.*?\)\)\))").findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, "embed", ret="src") url += re.compile("file *: *['|\"](.+?)['|\"]").findall(result) url = [i for i in url if not i.endswith(".srt")] url = "http://" + url[0].split("://", 1)[-1] return url except: return
def resolve(url): try: url = re.compile('//.+?/([\w]+)').findall(url)[0] url = 'http://www.movdivx.com/%s' % url result = client.request(url) post = {} f = client.parseDOM(result, 'Form', attrs = {'action': '' })[0] k = client.parseDOM(f, 'input', ret='name', attrs = {'type': 'hidden'}) for i in k: post.update({i: client.parseDOM(f, 'input', ret='value', attrs = {'name': i})[0]}) post.update({'method_free': 'Free Download'}) result = client.request(url, post=post) result = re.compile('(eval.*?\)\)\))').findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, 'embed', ret='src') url += re.compile("file *: *[\'|\"](.+?)[\'|\"]").findall(result) url = [i for i in url if not i.endswith('.srt')] url = 'http://' + url[0].split('://', 1)[-1] return url except: return
def resolve(url): return try: url = url.replace("/embed-", "/") url = re.compile("//.+?/([\w]+)").findall(url)[0] url = "http://www.mightyupload.com/embed-%s.html" % url result = client.request(url, mobile=True) url = re.compile("file *: *'(.+?)'").findall(result) if len(url) > 0: return url[0] result = re.compile("(eval.*?\)\)\))").findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, "embed", ret="src") url += re.compile("file *: *['|\"](.+?)['|\"]").findall(result) url = [i for i in url if not i.endswith(".srt")] url = "http://" + url[0].split("://", 1)[-1] return url except: return
def resolve(url): try: url = re.compile('//.+?/([\w]+)').findall(url)[0] url = 'http://www.movdivx.com/%s' % url result = client.request(url) post = {} f = client.parseDOM(result, 'Form', attrs={'action': ''})[0] k = client.parseDOM(f, 'input', ret='name', attrs={'type': 'hidden'}) for i in k: post.update({ i: client.parseDOM(f, 'input', ret='value', attrs={'name': i})[0] }) post.update({'method_free': 'Free Download'}) post = urllib.urlencode(post) result = client.request(url, post=post) result = re.compile('(eval.*?\)\)\))').findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, 'embed', ret='src') url += re.compile("file *: *[\'|\"](.+?)[\'|\"]").findall(result) url = [i for i in url if not i.endswith('.srt')] url = 'http://' + url[0].split('://', 1)[-1] return url except: return
def resolve(url): try: url = url.replace('/video/', '/embed/') result = client.request(url) unpacked = '' packed = result.split('\n') for i in packed: try: unpacked += jsunpack.unpack(i) except: pass result += unpacked result = re.sub('\s\s+', ' ', result) var = re.compile('var\s(.+?)\s*=\s*\'(.+?)\'').findall(result) for i in range(100): for v in var: result = result.replace("' %s '" % v[0], v[1]).replace("'%s'" % v[0], v[1]) url = re.compile('sources\s*:\s*\[.+?file\s*:\s*(.+?)\s*\,').findall(result)[0] var = re.compile('var\s+%s\s*=\s*\'(.+?)\'' % url).findall(result) if len(var) > 0: url = var[0].strip() if url.startswith('http'): return url except: return
def resolve(url): try: headers = '|%s' % urllib.urlencode({'User-Agent': client.agent(), 'Referer': url}) url = url.replace('/embed-', '/') url = re.compile('//.+?/([\w]+)').findall(url)[0] url = 'http://www.mightyupload.com/embed-%s.html' % url result = client.request(url, mobile=True) url = re.compile("file *: *'(.+?)'").findall(result) if len(url) > 0 and url[0].startswith('http'): return url[0] + headers result = re.compile('(eval.*?\)\)\))').findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, 'embed', ret='src') url += re.compile("file *: *[\'|\"](.+?)[\'|\"]").findall(result) url = [i for i in url if not i.endswith('.srt')] url = 'http://' + url[0].split('://', 1)[-1] url += headers return url except: return
def resolve(url): try: url = re.compile('//.+?/([\w]+)').findall(url)[0] url = 'http://180upload.com/embed-%s.html' % url result = client.request(url) post = {} f = client.parseDOM(result, 'form', attrs={'id': 'captchaForm'})[0] k = client.parseDOM(f, 'input', ret='name', attrs={'type': 'hidden'}) for i in k: post.update({ i: client.parseDOM(f, 'input', ret='value', attrs={'name': i})[0] }) post = post result = client.request(url, post=post) result = re.compile('(eval.*?\)\)\))').findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, 'embed', ret='src') url += re.compile("'file' *, *'(.+?)'").findall(result) url = [i for i in url if not i.endswith('.srt')] url = 'http://' + url[0].split('://', 1)[-1] return url except: return
def resolve(url): try: url = url.replace('/embed-', '/') url = re.compile('//.+?/([\w]+)').findall(url)[0] url = 'http://divxpress.com/embed-%s.html' % url result = client.request(url, close=False) post = {} f = client.parseDOM(result, 'form', attrs={'method': 'POST'})[0] k = client.parseDOM(f, 'input', ret='name', attrs={'type': 'hidden'}) for i in k: post.update({ i: client.parseDOM(f, 'input', ret='value', attrs={'name': i})[0] }) post = urllib.urlencode(post) result = client.request(url, post=post) result = re.compile('(eval.*?\)\)\))').findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, 'embed', ret='src') url += re.compile("'file' *, *'(.+?)'").findall(result) url = [i for i in url if not i.endswith('.srt')] url = 'http://' + url[0].split('://', 1)[-1] return url except: return
def resolve(url): try: page = re.compile("//(.+?)/(?:embed|v)/([0-9a-zA-Z-_]+)").findall(url)[0] page = "http://%s/embed/%s" % (page[0], page[1]) try: referer = urlparse.parse_qs(urlparse.urlparse(url).query)["referer"][0] except: referer = page result = client.request(page, referer=referer) unpacked = "" packed = result.split("\n") for i in packed: try: unpacked += jsunpack.unpack(i) except: pass result += unpacked result = urllib.unquote_plus(result) result = re.sub("\s\s+", " ", result) url = client.parseDOM(result, "iframe", ret="src")[-1] url = url.replace(" ", "") var = re.compile("var\s(.+?)\s*=\s*'(.+?)'").findall(result) for i in range(100): for v in var: url = url.replace("'%s'" % v[0], v[1]) for v in var: url = url.replace("(%s)" % v[0], "(%s)" % v[1]) url = re.sub(r"'unescape\((.+?)\)'", r"\1", url) url = re.sub(r"'(.+?)'", r"\1", url) result = client.request(url, referer=referer) file = re.compile("'file'.+?'(.+?)'").findall(result)[0] try: if not file.startswith("http"): raise Exception() url = client.request(file, output="geturl") if not ".m3u8" in url: raise Exception() url += "|%s" % urllib.urlencode({"User-Agent": client.agent(), "Referer": file}) return url except: pass strm = re.compile("'streamer'.+?'(.+?)'").findall(result)[0] swf = re.compile("SWFObject\('(.+?)'").findall(result)[0] url = "%s playpath=%s swfUrl=%s pageUrl=%s live=1 timeout=30" % (strm, file, swf, url) return url except: return
def resolve(url): try: page = re.compile('//(.+?)/(?:embed|v)/([0-9a-zA-Z-_]+)').findall(url)[0] page = 'http://%s/embed/%s' % (page[0], page[1]) try: referer = urlparse.parse_qs(urlparse.urlparse(url).query)['referer'][0] except: referer = page result = client.request(page, referer=referer) unpacked = '' packed = result.split('\n') for i in packed: try: unpacked += jsunpack.unpack(i) except: pass result += unpacked result = urllib.unquote_plus(result) result = re.sub('\s\s+', ' ', result) url = client.parseDOM(result, 'iframe', ret='src')[-1] url = url.replace(' ', '') var = re.compile('var\s(.+?)\s*=\s*\'(.+?)\'').findall(result) for i in range(100): for v in var: url = url.replace("'%s'" % v[0], v[1]) for v in var: url = url.replace("(%s)" % v[0], "(%s)" % v[1]) url = re.sub(r"'.+?\((.+?)\)'", r'\1', url) url = re.sub(r"'(.+?)'", r'\1', url) result = client.request(url, referer=referer) file = re.compile("'file'.+?'(.+?)'").findall(result)[0] try: if not file.startswith('http'): raise Exception() url = client.request(file, output='geturl') if not '.m3u8' in url: raise Exception() url += '|%s' % urllib.urlencode({'User-Agent': client.agent(), 'Referer': file}) return url except: pass strm = re.compile("'streamer'.+?'(.+?)'").findall(result)[0] swf = re.compile("SWFObject\('(.+?)'").findall(result)[0] url = '%s playpath=%s swfUrl=%s pageUrl=%s live=1 timeout=30' % (strm, file, swf, url) return url except: return
def resolve(url): try: headers = '|%s' % urllib.urlencode({ 'User-Agent': client.agent(), 'Referer': url }) url = url.replace('/embed-', '/') url = re.compile('//.+?/([\w]+)').findall(url)[0] page = 'http://cloudyvideos.com/%s' % url result = client.request(page, close=False) if '>File Not Found<' in result: raise Exception() post = {} f = client.parseDOM(result, 'Form', attrs={'action': ''}) k = client.parseDOM(f, 'input', ret='name', attrs={'type': 'hidden'}) for i in k: post.update({ i: client.parseDOM(f, 'input', ret='value', attrs={'name': i})[0] }) post = urllib.urlencode(post) for i in range(0, 5): try: result = client.request(page, post=post, close=False) unpacked = '' packed = result.split('\n') for i in packed: try: unpacked += jsunpack.unpack(i) except: unpacked += i result = re.sub('\s\s+', ' ', unpacked) url = client.parseDOM(result, 'embed', ret='src') url += re.compile("file *: *[\'|\"](.+?)[\'|\"]").findall( result) url = [i for i in url if '://' in i] url = [i for i in url if not i.endswith('.srt')] url = 'http://' + url[0].split('://', 1)[-1] url += headers return url except: time.sleep(1) except: return
def testjs(html, url, loc): jss = re.findall(r'eval\(.+\)', html) js = None for j in jss: if 'goml' in j: js = j break html_with_unpacked_js = jsunpack.unpack(js) ret = js2py.eval_js(html_with_unpacked_js + '; page+"PLACE_HOLDER"+code') ret = ret.replace('PLACE_HOLDER', loc) ret = '%s/%s' % (url, ret) ret = ret.replace('slug=/watch', 'slug=watch') return ret
def getVidToken(self): try: all_js_url = urlparse.urljoin(self.base_link, self.ALL_JS) unpacked_code = '' cch = '' if len(self.TOKEN_KEY) == 0: try: all_js_pack_code = proxies.request( all_js_url, use_web_proxy=self.proxyrequired, httpsskip=True) unpacked_code = jsunpack.unpack(all_js_pack_code) cch = re.findall( r'%s' % common.client.b64decode( 'ZnVuY3Rpb25cKHQsaSxuXCl7XCJ1c2Ugc3RyaWN0XCI7ZnVuY3Rpb24gZVwoXCl7cmV0dXJuICguKj8pfWZ1bmN0aW9uIHJcKHRcKQ==' ), unpacked_code)[0] token_key = re.findall(r'%s=.*?\"(.*?)\"' % cch, unpacked_code)[0] if token_key != None and token_key != '': self.TOKEN_KEY.append(token_key) except Exception as e: log('ERROR', 'getVidToken-1.1', '%s' % e, dolog=False) if len(self.TOKEN_KEY) == 0: try: cch = re.findall( r'%s' % common.client.b64decode( 'ZnVuY3Rpb25cKFthLXpdLFthLXpdLFthLXpdXCl7XCJ1c2Ugc3RyaWN0XCI7ZnVuY3Rpb24gW2Etel1cKFwpe3JldHVybiAoLio/KX1mdW5jdGlvbiBbYS16XVwoW2Etel1cKQ==' ), unpacked_code)[0] token_key = re.findall(r'%s=.*?\"(.*?)\"' % cch, unpacked_code)[0] if token_key != None and token_key != '': #cookie_dict.update({'token_key':token_key}) self.TOKEN_KEY.append(token_key) except Exception as e: log('ERROR', 'getVidToken-1.2', '%s' % e, dolog=False) except Exception as e: log('ERROR', 'getVidToken-1', '%s' % e, dolog=False) log('ERROR', 'getVidToken-1', '%s' % unpacked_code, dolog=False) log('ERROR', 'getVidToken-1', '%s' % cch, dolog=False) try: if len(self.TOKEN_KEY) == 0 or True: token_key = proxies.request(self.TOKEN_KEY_PASTEBIN_URL, use_web_proxy=self.proxyrequired, httpsskip=True) if token_key != None and token_key != '': #cookie_dict.update({'token_key':token_key}) self.TOKEN_KEY.append(token_key) except Exception as e: log('ERROR', 'getVidToken-2', '%s' % e, dolog=False)
def getVidToken(self): try: all_js_url = urlparse.urljoin(self.base_link, self.ALL_JS) unpacked_code = '' cch = '' if len(self.TOKEN_KEY) == 0: all_js_pack_code = proxies.request( all_js_url, use_web_proxy=self.proxyrequired, httpsskip=True, timeout=7) unpacked_code = jsunpack.unpack(all_js_pack_code) cch = re.findall( r'%s' % client.b64decode( 'ZnVuY3Rpb25cKFthLXpdLFthLXpdLFthLXpdXCl7XCJ1c2Ugc3RyaWN0XCI7ZnVuY3Rpb24gW2Etel1cKFwpe3JldHVybiAoLio/KX0=' ), unpacked_code)[0] token_key = re.findall(r'%s=.*?\"(.*?)\"' % cch, unpacked_code)[0] if token_key != None and token_key != '': self.TOKEN_KEY.append(token_key) control.set_setting(name + 'VidToken', token_key) except Exception as e: log('ERROR', 'getVidToken-1', '%s' % e, dolog=False) log('ERROR', 'getVidToken-1', '%s' % unpacked_code, dolog=False) log('ERROR', 'getVidToken-1', '%s' % cch, dolog=False) try: if len(self.TOKEN_KEY) == 0: token_key = proxies.request(self.TOKEN_KEY_PASTEBIN_URL, use_web_proxy=self.proxyrequired, httpsskip=True, timeout=7) if token_key != None and token_key != '': #cookie_dict.update({'token_key':token_key}) self.TOKEN_KEY.append(token_key) control.set_setting(name + 'VidToken', token_key) except Exception as e: log('ERROR', 'getVidToken-2', '%s' % e, dolog=False) try: fm_flags = proxies.request(self.FLAGS_PASTEBIN_URL, use_web_proxy=self.proxyrequired, httpsskip=True, timeout=7) if fm_flags != None and fm_flags != '': fm_flags = json.loads(fm_flags) #cookie_dict.update({'token_key':token_key}) self.FLAGS = fm_flags except Exception as e: log('ERROR', 'getVidToken-3-Flags', '%s' % e, dolog=False)
def check(url): try: url = urlparse.urlparse(url).query url = urlparse.parse_qsl(url)[0][1] url = 'http://videomega.tv/cdn.php?ref=%s' % url result = client.request(url, mobile=True) result = re.compile('eval.*?{}\)\)').findall(result)[-1] result = jsunpack.unpack(result) url = re.compile('"src","(.*?)"').findall(result)[-1] control.log("### VIDEOMEGA RE3 1111111111 %s" % url) if url.startswith('http://N/D/m/'): return False return True except: return False
def resolve(url): try: try: referer = urlparse.parse_qs( urlparse.urlparse(url).query)['referer'][0] except: referer = url id = urlparse.parse_qs(urlparse.urlparse(url).query)['u'][0] url = 'http://www.finecast.tv/embed4.php?u=%s&vw=640&vh=450' % id result = client.request(url, referer=referer) unpacked = '' packed = result.split('\n') for i in packed: try: unpacked += jsunpack.unpack(i) except: pass result += unpacked result = result.replace('"+"', '+').replace('+"', '+').replace('"+', '+') var = re.compile('var\s(.+?)\s*=\s*(?:\'|\"|\s*)(.+?)(?:\'|\"|\s*);' ).findall(result) result = re.sub(r"'(.+?)'", r'\1', result) rtmp = re.findall('file:\s*(.+?),', result)[0] m3u8 = re.findall('file:\s*(.+?),', result)[1] #url = m3u8 + '|%s' % urllib.urlencode({'User-Agent': client.agent(), 'Referer': referer}) url = rtmp + ' swfUrl=http://www.finecast.tv/player6/jwplayer.flash.swf flashver=WIN\2019,0,0,185 live=1 timeout=14 swfVfy=1 pageUrl=http://www.finecast.tv/' for i in range(100): for v in var: result = result.replace('+%s+' % v[0], v[1]) for v in var: result = result.replace('%s+' % v[0], v[1]) for v in var: result = result.replace('+%s' % v[0], v[1]) var = re.compile('var\s(.+?)\s*=\s*(?:\'|\"|\s*)(.+?)(?:\'|\"|\s*);' ).findall(result) for i in range(100): for v in var: url = url.replace('+%s+' % v[0], v[1]) for v in var: url = url.replace('%s+' % v[0], v[1]) for v in var: url = url.replace('+%s' % v[0], v[1]) return url except: return
def resolve(url): try: headers = '|%s' % urllib.urlencode({ 'User-Agent': client.agent(), 'Referer': url }) result = client.request(url, mobile=True, close=False) try: post = {} f = client.parseDOM(result, 'Form', attrs={'method': 'POST'})[0] f = f.replace('"submit"', '"hidden"') k = client.parseDOM(f, 'input', ret='name', attrs={'type': 'hidden'}) for i in k: post.update({ i: client.parseDOM(f, 'input', ret='value', attrs={'name': i})[0] }) post = urllib.urlencode(post) except: post = None for i in range(0, 10): try: result = client.request(url, post=post, mobile=True, close=False) result = result.replace('\n', '') result = re.compile('(eval.*?\)\)\))').findall(result)[-1] result = jsunpack.unpack(result) result = re.compile('sources *: *\[.+?\]').findall(result)[-1] result = re.compile('file *: *"(http.+?)"').findall(result) url = [i for i in result if '.m3u8' in i] if len(url) > 0: return url[0] + headers url = [i for i in result if not '.m3u8' in i] if len(url) > 0: return url[0] + headers except: time.sleep(1) except: return
def check(url): try: url = urlparse.urlparse(url).query url = urlparse.parse_qsl(url)[0][1] url = 'http://videomega.tv/cdn.php?ref=%s' % url result = client.request(url, mobile=True) result = re.compile('eval.*?{}\)\)').findall(result)[-1] result = jsunpack.unpack(result) url = re.compile('"src","(.*?)"').findall(result)[-1] #control.log("### VIDEOMEGA RE3 1111111111 %s" % url) if url.startswith('http://N/D/m/'): return False return True except: return False
def resolve(url): try: result = client.request(url) result = re.compile('(eval.*?\)\)\))').findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, 'embed', ret='src') url += re.compile("file *: *[\'|\"](.+?)[\'|\"]").findall(result) url = [i for i in url if not i.endswith('.srt')] url = 'http://' + url[0].split('://', 1)[-1] return url except: return
def resolve(url): try: page = re.compile('//(.+?)/(?:embed|v)/([0-9a-zA-Z-_]+)').findall(url)[0] page = 'http://%s/embed/%s' % (page[0], page[1]) try: referer = urlparse.parse_qs(urlparse.urlparse(url).query)['referer'][0] except: referer = page result = client.request(page, referer=referer) unpacked = '' packed = result.split('\n') for i in packed: try: unpacked += jsunpack.unpack(i) except: pass result += unpacked result = urllib.unquote_plus(result) result = re.sub('\s\s+', ' ', result) url = client.parseDOM(result, 'iframe', ret='src')[-1] url = url.replace(' ', '').split("'")[0] ch = re.compile('ch=""(.+?)""').findall(str(result)) ch = ch[0].replace(' ','') sw = re.compile(" sw='(.+?)'").findall(str(result)) url = url+'/'+ch+'/'+sw[0] result = client.request(url, referer=referer) file = re.compile("'file'.+?'(.+?)'").findall(result)[0] print file try: if not file.startswith('http'): raise Exception() url = client.request(file, output='geturl') print url if not '.m3u8' in url: raise Exception() url += '|%s' % urllib.urlencode({'User-Agent': client.agent(), 'Referer': file}) return url except: pass strm = re.compile("'streamer'.+?'(.+?)'").findall(result)[0] swf = re.compile("SWFObject\('(.+?)'").findall(result)[0] url = '%s playpath=%s swfUrl=%s pageUrl=%s live=1 timeout=30' % (strm, file, swf, url) return url except: return
def resolve(self, url): try: if 'videowood' in url: try: packed = cloudflare.source(url.replace('/video/','/embed/')) packed = re.compile('eval(.+?)</script>').findall(packed.replace("\n", "").replace(" ",""))[0] packed = 'eval'+packed.replace('\\','') unpacked = jsunpack.unpack(packed) url = re.compile('"file":"(.+?)"').findall(unpacked)#[1] url = [i for i in url if not i.endswith('.srt') and not i.endswith('.png')][0] except: pass else: url = resolvers.request(url) return url except: return
def resolve(self, url): try: if 'videowood' in url: try: packed = cloudflare.source(url) packed = re.compile('eval(.+?)</script>').findall(packed.replace("\n", "").replace(" ",""))[0] packed = 'eval'+packed.replace('\\','') unpacked = jsunpack.unpack(packed) url = re.compile('"file":"(.+?)"').findall(unpacked)#[1] url = [i for i in url if not i.endswith('.srt') and not i.endswith('.png')][0] except: pass else: url = resolvers.request(url) return url except: return
def resolve(url): try: url = re.compile('//.+?/(?:video|embed)/([0-9a-zA-Z-_]+)').findall(url)[0] url = 'http://videowood.tv/embed/%s' % url result = client.request(url) result = re.compile('(eval.*?)\n').findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, 'embed', ret='src') url += re.compile("[\'|\"]file[\'|\"] *: *[\'|\"](.+?)[\'|\"]").findall(result) url = [i.replace('\\', '') for i in url if not i.endswith(('.srt', '.png', '.jpg'))] url = 'http://' + url[0].split('://', 1)[-1] return url except: return
def resolve(url): try: url = urlparse.urlparse(url).query url = urlparse.parse_qsl(url)[0][1] url = 'http://videomega.tv/cdn.php?ref=%s' % url #control.log("### VIDEOMEGA RES %s" % url) result = client.request(url, mobile=True) #control.log("### VIDEOMEGA RES %s" % result) result = re.compile('eval.*?{}\)\)').findall(result)[-1] #control.log("### VIDEOMEGA RES2 %s" % result) result = jsunpack.unpack(result) #control.log("### VIDEOMEGA RE3 %s" % result) #"src", "http://abo.cdn.vizplay.org/m2/769a65801d8e8a110452f2b74d4082d1.mp4?st=-A2O2o2soMR81Niiag5EyA&hash=Dw8Kth5gh-nNyMRbWLZMKA" url = re.compile('"src","(.*?)"').findall(result)[-1] #control.log("### VIDEOMEGA RE4 %s" % url) return url except: return
def resolve(url): try: url = urlparse.urlparse(url).query url = urlparse.parse_qsl(url)[0][1] url = 'http://videomega.tv/cdn.php?ref=%s' % url #control.log("### VIDEOMEGA RES %s" % url) result = client.request(url, mobile=True) #control.log("### VIDEOMEGA RES %s" % result) result = re.compile('eval.*?{}\)\)').findall(result)[-1] #control.log("### VIDEOMEGA RES2 %s" % result) result = jsunpack.unpack(result) #control.log("### VIDEOMEGA RE3 %s" % result) #"src", "http://abo.cdn.vizplay.org/m2/769a65801d8e8a110452f2b74d4082d1.mp4?st=-A2O2o2soMR81Niiag5EyA&hash=Dw8Kth5gh-nNyMRbWLZMKA" url = re.compile('"src","(.*?)"').findall(result)[-1] control.log("### VIDEOMEGA RE4 %s" % url) return url except: return
def resolve(url): try: url = url.replace('/embed-', '/') url = re.compile('//.+?/([\w]+)').findall(url)[0] url = 'http://rapidvideo.ws/embed-%s.html' % url result = client.request(url, mobile=True) result = re.compile('(eval.*?\)\)\))').findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, 'embed', ret='src') url += re.compile("file *: *[\'|\"](.+?)[\'|\"]").findall(result) url = [i for i in url if not i.endswith('.srt')] url = 'http://' + url[0].split('://', 1)[-1] return url except: return
def resolve(url): try: headers = '|%s' % urllib.urlencode({'User-Agent': client.agent(), 'Referer': url}) url = url.replace('/embed-', '/') url = re.compile('//.+?/([\w]+)').findall(url)[0] page = 'http://cloudyvideos.com/%s' % url result = client.request(page, close=False) if '>File Not Found<' in result: raise Exception() post = {} f = client.parseDOM(result, 'Form', attrs = {'action': ''}) k = client.parseDOM(f, 'input', ret='name', attrs = {'type': 'hidden'}) for i in k: post.update({i: client.parseDOM(f, 'input', ret='value', attrs = {'name': i})[0]}) post = urllib.urlencode(post) for i in range(0, 5): try: result = client.request(page, post=post, close=False) unpacked = '' packed = result.split('\n') for i in packed: try: unpacked += jsunpack.unpack(i) except: unpacked += i result = re.sub('\s\s+', ' ', unpacked) url = client.parseDOM(result, 'embed', ret='src') url += re.compile("file *: *[\'|\"](.+?)[\'|\"]").findall(result) url = [i for i in url if '://' in i] url = [i for i in url if not i.endswith('.srt')] url = 'http://' + url[0].split('://', 1)[-1] url += headers return url except: time.sleep(1) except: return
def resolve(url): try: url = url.replace("/embed-", "/") url = re.compile("//.+?/([\w]+)").findall(url)[0] url = "http://xvidstage.com/embed-%s.html" % url result = client.request(url, mobile=True) result = re.compile("(eval.*?\)\)\))").findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, "embed", ret="src") url += re.compile("'file' *, *'(.+?)'").findall(result) url = [i for i in url if not i.endswith(".srt")] url = "http://" + url[0].split("://", 1)[-1] return url except: return
def resolve(url): try: url = url.replace("/embed-", "/") url = re.compile("//.+?/([\w]+)").findall(url)[0] url = "http://vidto.me/embed-%s.html" % url result = client.request(url) result = re.compile("(eval.*?\)\)\))").findall(result)[-1] result = jsunpack.unpack(result) url = client.parseDOM(result, "embed", ret="src") url += re.compile("file *: *['|\"](http.+?)['|\"]").findall(result) url = [i for i in url if not i.endswith(".srt")] url = "http://" + url[0].split("://", 1)[-1] return url except: return
def resolve(url): try: url = url.replace('/embed-', '/') url = re.compile('//.+?/([\w]+)').findall(url)[0] page = 'http://cloudyvideos.com/%s' % url result = client.request(page, close=False) if '>File Not Found<' in result: raise Exception() post = {} f = client.parseDOM(result, 'Form', attrs={'action': ''}) k = client.parseDOM(f, 'input', ret='name', attrs={'type': 'hidden'}) for i in k: post.update({ i: client.parseDOM(f, 'input', ret='value', attrs={'name': i})[0] }) post = urllib.urlencode(post) for i in range(0, 5): try: result = client.request(page, post=post, close=False) url = re.compile("file *: *'(.+?)'").findall(result) if len(url) == 0: result = re.compile('(eval.*?\)\)\))').findall(result) result = [i for i in result if '|download|' in i][0] result = jsunpack.unpack(result) url = client.parseDOM(result, 'embed', ret='src') url += re.compile("file *: *[\'|\"](.+?)[\'|\"]").findall( result) url = [i for i in url if not i.endswith('.srt')] url = 'http://' + url[0].split('://', 1)[-1] return url except: time.sleep(1) except: return
def resolve(url): try: result = client.source(url) packed = re.search('(eval\(function.*?)\s*</script>', result, re.DOTALL) if packed: js = jsunpack.unpack(packed.group(1)) else: js = result link = re.search('file\s*:\s*"([^"]+)', js) if link: url = link.group(1) else: url = None logger.debug('%s URL [%s]' % (__name__, url)) return url except: return
def resolve(url): try: result = client.source(url) packed = re.search('(eval\(function.*?)\s*</script>', result, re.DOTALL) if packed: js = jsunpack.unpack(packed.group(1)) else: js = result link = re.search('file\s*:\s*"([^"]+)', js) if link: url = link.group(1) else : url = None logger.debug('%s URL [%s]' % (__name__, url)) return url except: return
def getVidToken(self): try: all_js_url = urlparse.urljoin(self.base_link, self.ALL_JS) if len(self.TOKEN_KEY) == 0: all_js_pack_code = proxies.request(all_js_url, use_web_proxy=self.proxyrequired, httpsskip=True) unpacked_code = jsunpack.unpack(all_js_pack_code) cch = re.findall(r'%s' % client.b64decode('ZnVuY3Rpb25cKHQsZSxpXCl7XCJ1c2Ugc3RyaWN0XCI7ZnVuY3Rpb24gblwoXCl7cmV0dXJuICguKj8pfWZ1bmN0aW9uIHJcKHRcKQ=='), unpacked_code)[0] token_key = re.findall(r'%s=.*?\"(.*?)\"' % cch, unpacked_code)[0] if token_key !=None and token_key != '': #cookie_dict.update({'token_key':token_key}) self.TOKEN_KEY.append(token_key) except Exception as e: self.log('ERROR', 'getVidToken-1','%s' % e) try: if len(self.TOKEN_KEY) == 0: token_key = proxies.request(self.TOKEN_KEY_PASTEBIN_URL, use_web_proxy=self.proxyrequired, httpsskip=True) if token_key !=None and token_key != '': #cookie_dict.update({'token_key':token_key}) self.TOKEN_KEY.append(token_key) except Exception as e: self.log('ERROR', 'getVidToken-2','%s' % e)