def __prepare_links(self,links): new = [] precheck = addon.get_setting('link_precheck') if precheck=='true': pDialog = xbmcgui.DialogProgress() pDialog.create('Checking links', 'Checking links...') i=1 items = len(links) for l in links: try: info = l.findAll('td') kbps = info[1].getText().strip() service = info[2].getText().strip() lang = info[3].getText().strip() type = info[4].getText().strip() url = info[5].find('a')['href'] title = "%s (%s, %s) - %s"%(service, lang, kbps, type) found = True perc = 100*i/items if type =='HTTP' and precheck=='true': import liveresolver found = liveresolver.find_link(url) pDialog.update(perc, 'Checking:',service) if 'sponsored' not in service.lower() and found: new.append((url,title)) i+=1 if (precheck=='true' and pDialog.iscanceled()): return new except: pass return new
def __prepare_links(self,links): new=[] precheck = addon.get_setting('link_precheck') if precheck=='true': pDialog = xbmcgui.DialogProgress() pDialog.create('Checking links', 'Checking links...') i=1 items = len(links) for link in links: info = link.findAll('td') name = info[1].getText() lang = info[2].getText() service = info[3].getText() kbps = info[4].getText() url = self.base + '/' + info[5].find('a')['href'] title = "%s (%s, %skbps) - %s"%(name, lang, kbps, service) found = True perc = 100*i/items if precheck=='true': import liveresolver if 'Acestream' not in service and 'Sopcast' not in service: found = liveresolver.find_link(url) pDialog.update(perc, 'Checking:',name) if found: new.append((url,title)) i+=1 if (precheck=='true' and pDialog.iscanceled()): return new return new
def __prepare_links(self, links): new = [] precheck = control.setting('link_precheck') if precheck == 'true': pDialog = xbmcgui.DialogProgress() pDialog.create('Checking links', 'Checking links...') i = 1 items = len(links) for l in links: try: info = l.findAll('td') kbps = info[1].getText().strip() service = info[2].getText().strip() lang = info[3].getText().strip() type = info[4].getText().strip() url = info[5].find('a')['href'] title = "%s (%s, %s) - %s" % (service, lang, kbps, type) found = True perc = 100 * i / items if type == 'HTTP' and precheck == 'true': import liveresolver found = liveresolver.find_link(url) pDialog.update(perc, 'Checking:', service) if 'sponsored' not in service.lower() and found: new.append((url, title)) i += 1 if (precheck == 'true' and pDialog.iscanceled()): return new except: pass return new
def __prepare_links(self,links): new=[] precheck = addon.get_setting('link_precheck') if precheck=='true': pDialog = xbmcgui.DialogProgress() pDialog.create('Checking links', 'Checking links...') i=1 items = len(links) for link in links: title = link.getText() url = link['data-f-href'] found = True perc = 100*i/items if precheck=='true': import liveresolver found = liveresolver.find_link(url) pDialog.update(perc, 'Checking:',title) if found: new.append((url,title)) i+=1 if (precheck=='true' and pDialog.iscanceled()): return new return new