Beispiel #1
0
	def channels(self):
		soup = webutils.get_soup(self.base)
		headers = soup.findAll('a',{'class':'menuitem submenuheader'})
		headers.pop(0)
		items = soup.findAll('div',{'class':'submenu'})
		items.pop(0)
		events = self.__prepare_channels(headers,items)

		return events
Beispiel #2
0
    def channels(self):
        soup = webutils.get_soup(self.base)
        headers = soup.findAll('a', {'class': 'menuitem submenuheader'})
        headers.pop(0)
        items = soup.findAll('div', {'class': 'submenu'})
        items.pop(0)
        events = self.__prepare_channels(headers, items)

        return events
Beispiel #3
0
 def resolve(self, link):
     link = link.replace('/index.html', '')
     soup = webutils.get_soup(link)
     bitrate = addon.get_setting('nba_bitrate')
     link = soup.find('file', {'bitrate': '%s' % bitrate}).getText()
     return link
	def resolve(self, link):
	    link=link.replace('/index.html','')
	    soup = webutils.get_soup(link)
	    bitrate = addon.get_setting('nba_bitrate')
	    link=soup.find('file',{'bitrate':'%s'%bitrate}).getText()
	    return link
Beispiel #5
0
 def categories(self):
     soup = webutils.get_soup(self.base)
     cats = soup.find('table', {'class': 'menuTable'}).findAll('td')
     categories = self.__prepare_cats(cats)
     return categories
Beispiel #6
0
 def categories(self):
     soup = webutils.get_soup(self.base)
     cats = soup.find('table',{'class':'menuTable'}).findAll('td')
     categories = self.__prepare_cats(cats)
     return categories
Beispiel #7
0
 def categories(self):
     soup = webutils.get_soup(self.base)
     cats = soup.find("table", {"class": "menuTable"}).findAll("td")
     categories = self.__prepare_cats(cats)
     return categories