Skip to content

Instantly share code, notes, and snippets.

url = li.find("a")["href"]
title = "%s" % li.find("a").find(text=True)
o = urlparse(url)
q = parse_qs(o.query)
##q = {u'discipline': [u'americanfootball'], u'part': [u'sports']}
Log(q)
thumb = WIZIWIG_URL + "/gfx/disciplines/" + q["discipline"] + ".gif"
returns error
##########################################################################################
@route(VIDEO_PREFIX + "/Sports")
def Sports(channel_id = None, thumb = ''):
oc = ObjectContainer(title2 = "Sports")
url = WIZIWIG_URL + "/index.php?part=sports"
html = HTTP.Request(url).content
soup = BeautifulSoup(html)
match_table = soup.find("div", "subheaderSports")
make[1]: Entering directory `/home/james/plex-home-theater-public/xbmc/main'
CPP xbmc/main/main.o
In file included from /home/james/plex-home-theater-public/xbmc/FileItem.h:27:0,
from /home/james/plex-home-theater-public/xbmc/settings/AppParamParser.h:22,
from main.cpp:22:
/home/james/plex-home-theater-public/xbmc/guilib/GUIListItem.h:43:23: fatal error: PlexTypes.h: No such file or directory
#include "PlexTypes.h"
^
compilation terminated.
make[1]: *** [main.o] Error 1