def listVideosRss(url,showName,hideShowName,nextPage,einsLike): content = getUrl(url) c = rssParser(content) for title,pubDate,thumb,plot,link,documentId,category,runtime in c: if hideShowName: title = title.replace(showName+' - ','') if not checkLive(pubDate) and not '/Audio-Podcast?' in link and not '/Video-Podcast?' in link: thumb = thumb.replace('/384','/448') addLink(cleanTitle(title[0].upper()+title[1:]),link,'playVideoUrl',thumb,runtime,desc=plot,genre=category) if len(c) > 45 and nextPage:#ARD Webseite ist buggy, darum nicht 50 oder 54 if einsLike:#einslike next page "hack" nextPageUrlBit = '&mcontent=page.' else: nextPageUrlBit = '&mcontents=page.' if not nextPageUrlBit in url: url += nextPageUrlBit+'2' else: url = url.replace(nextPageUrlBit+url.split(nextPageUrlBit)[-1],nextPageUrlBit+str(int(url.split(nextPageUrlBit)[-1])+1)) if hideShowName: addShowDir(translation(30009).encode("utf-8"), url, 'listVideosRss', "", showName) elif einsLike: addDir(translation(30009).encode("utf-8"), url, 'listVideosRss', "", nextPage=True, einsLike=True) else: addDir(translation(30009).encode("utf-8"), url, 'listVideosRss', "", nextPage=True, einsLike=False) xbmcplugin.endOfDirectory(pluginhandle) if forceViewMode: xbmc.executebuiltin('Container.SetViewMode('+viewMode+')')
def listDirRss(url): content = getUrl(url) for title, pubDate, thumb, plot, link, documentId, category, runtime in rssParser( content): if not checkLive(pubDate): addDir(title, documentId, 'listVideosXml', thumb) #TODO plot xbmcplugin.endOfDirectory(pluginhandle)
def listVideosRss(url, showName, hideShowName, nextPage, einsLike): debug("listVideosRss url :" + url) content = getUrl(url) c = rssParser(content) for title, pubDate, thumb, plot, link, documentId, category, runtime in c: if hideShowName: title = title.replace(showName + ' - ', '') if not checkLive( pubDate ) and not '/Audio-Podcast?' in link and not '/Video-Podcast?' in link: thumb = thumb.replace('/384', '/896') addLink(cleanTitle(title[0].upper() + title[1:]), link, 'playVideoUrl', thumb, runtime, desc=plot, genre=category) if len( c ) > 45 and nextPage: #ARD Webseite ist buggy, darum nicht 50 oder 54 if einsLike: #einslike next page "hack" nextPageUrlBit = '&mcontent=page.' else: nextPageUrlBit = '&mcontents=page.' if not nextPageUrlBit in url: url += nextPageUrlBit + '2' else: url = url.replace( nextPageUrlBit + url.split(nextPageUrlBit)[-1], nextPageUrlBit + str(int(url.split(nextPageUrlBit)[-1]) + 1)) if hideShowName: addShowDir( translation(30009).encode("utf-8"), url, 'listVideosRss', "", showName) elif einsLike: addDir(translation(30009).encode("utf-8"), url, 'listVideosRss', "", nextPage=True, einsLike=True) else: addDir(translation(30009).encode("utf-8"), url, 'listVideosRss', "", nextPage=True, einsLike=False) xbmcplugin.endOfDirectory(pluginhandle) if forceViewMode: xbmc.executebuiltin('Container.SetViewMode(' + viewMode + ')')
def listDirRss(url): content = getUrl(url) for title,pubDate,thumb,plot,link,documentId,category,runtime in rssParser(content): if not checkLive(pubDate): addDir(title, documentId, 'listVideosXml', thumb)#TODO plot xbmcplugin.endOfDirectory(pluginhandle)