def lib3satListDateVideos(): if 'datum' in params: from datetime import date, timedelta day = date.today() - timedelta(int(params['datum'])) ddmmyy = day.strftime('%d%m%y') else: ddmmyyyy = libMediathek.dialogDate() ddmmyy = ddmmyyyy[0:2] + ddmmyyyy[2:4] + ddmmyyyy[6:8] url = 'http://www.3sat.de/mediathek/xmlservice/web/sendungVerpasst?startdate=' + ddmmyy + '&enddate=' + ddmmyy + '&maxLength=50' l = xmlservice.getXML(url, type='date')[::-1] import lib3satEpg l = lib3satEpg.enrichEpg(l, '20170520') return l
def xmlListPage(): libMediathek.addEntries(xmlservice.getXML(params['url']))
def lib3satSearch(): keyboard = xbmc.Keyboard('', translation(31039)) keyboard.doModal() if keyboard.isConfirmed() and keyboard.getText(): search_string = urllib.quote_plus(keyboard.getText()) libMediathek.addEntries(xmlservice.getXML("http://www.zdf.de/ZDFmediathek/xmlservice/web/detailsSuche?maxLength=50&types=Video&properties=HD%2CUntertitel%2CRSS&searchString="+search_string))
def lib3satListDateVideos(): from datetime import date, timedelta day = date.today() - timedelta(int(params['datum'])) ddmmyy = day.strftime('%d%m%y') url = 'http://www.3sat.de/mediathek/xmlservice/web/sendungVerpasst?startdate='+ddmmyy+'&enddate='+ddmmyy+'&maxLength=50' libMediathek.addEntries(xmlservice.getXML(url,type='date')[::-1])
def lib3satListShows(): letter = params['name'].replace('#','0%2D9') libMediathek.addEntries(xmlservice.getXML('http://www.3sat.de/mediathek/xmlservice/web/sendungenAbisZ?characterRangeEnd='+letter+'&detailLevel=2&characterRangeStart='+letter))
def lib3satSearch(): search_string = libMediathek.getSearchString() return\ xmlservice.getXML(\ baseXml + "/xmlservice/web/detailsSuche?maxLength=50&types=Video&properties=HD%2CUntertitel%2CRSS&searchString="+search_string\ ) if search_string else None
def lib3satXmlListPage(): return xmlservice.getXML(params['url'])