def CAT_KIDS_SERIES(main_url): from daum_kids import DaumKids site = DaumKids() site.parseSeries(main_url) for title, url, thumb in site.menu_list: addDir(title, url, 53, thumb) endDir()
def PLAY_KIDS_VOD(main_url, title): from daum_kids import DaumKids site = DaumKids() vid = site.extract_video_id(main_url) vid_url = DaumGetFlvByVid(None, vid) print "daum vid=%s url=%s" % (vid, vid_url) li = xbmcgui.ListItem(title, iconImage="DefaultVideo.png") li.setInfo('video', {"Title": title}) xbmc.Player().play(vid_url, li)
def CAT_KIDS_VOD(main_url): from daum_kids import DaumKids site = DaumKids() site.parseTop(main_url) for title, url, thumb in site.menu_list: if url.find('categoryId=') > 0: addDir(title, url, 53, thumb) else: addDir(title, url, 52, thumb) endDir()
def BROWSE_KIDS(main_url, contPage): from daum_kids import DaumKids site = DaumKids() site.parse(main_url) for title, url, thumb in site.video_list: addDir(title, url, 1003, thumb) if site.prevpage: addDir(prevPage, site.prevpage, 54, '') if site.nextpage: addDir(nextPage, site.nextpage, 54, '') for title, url, thumb in site.menu_list: addDir('[COLOR FF00FF00]%s[/COLOR]' % title, url, 54, thumb) endDir(contPage)