diff --git a/lib/libmediathek4.py b/lib/libmediathek4.py index 99242d2..56d6f01 100644 --- a/lib/libmediathek4.py +++ b/lib/libmediathek4.py @@ -135,7 +135,7 @@ def addEntries(self,d): ok=True - if item['type'] in ['audio','songs']: + if item.get('type',None) in ['audio','songs']: liz.setInfo( type="music", infoLabels=ilabels) else: liz.setInfo( type="Video", infoLabels=ilabels) @@ -383,4 +383,4 @@ def _calcyyyymmdd(self,d): def _calcddmmyyyy(self,d): day = date.today() - timedelta(d) - return day.strftime('%d-%m-%Y') \ No newline at end of file + return day.strftime('%d-%m-%Y')