def listVideosFilmByDate(urlFull): xbmcplugin.setContent(pluginhandle, "movies") matches = fimstartsCore.getmatches(urlFull, True) for i in range(len(matches[0])): addDir(matches[0][i], baseUrl + matches[1][i], "listTrailers", get_better_thumb(matches[2][i]), matches[3][i], matches[4][i], matches[5][i], matches[6][i], matches[7][i] ) if urlFull.find('?') != -1: urlFull = urlFull.split('?')[0] addDir('--> Woche danach (' + fimstartsCore.next.strftime("%d %b %Y") + ')', urlFull + fimstartsCore.getUrlSuffixWeek(False), "listVideosFilmByDate") addDir('<-- Woche zuvor (' + fimstartsCore.prev.strftime("%d %b %Y") + ')', urlFull + fimstartsCore.getUrlSuffixWeek(True), "listVideosFilmByDate") xbmcplugin.endOfDirectory(pluginhandle)
def listVideosSeries(urlFull): xbmcplugin.setContent(pluginhandle, "movies") matches = fimstartsCore.getmatches(urlFull, False) for i in range(len(matches[0])): addDir(matches[0][i], baseUrl + matches[1][i], "listTrailers", get_better_thumb(matches[2][i]), matches[3][i], matches[4][i], matches[5][i], matches[6][i], matches[7][i] ) if urlFull.find('?') != -1: spl = urlFull.split('?page=') siteNr = int(spl[1]) siteNr += 1 siteNr = str(siteNr) urlFull = spl[0] + '?page=' + siteNr addDir('Nächste Seite (' + siteNr + ')', urlFull, "listVideosSeries") xbmcplugin.endOfDirectory(pluginhandle)