From 85cbf7b1dc3537ff4afa99b50d132fbddc2c31d1 Mon Sep 17 00:00:00 2001 From: f69m Date: Sun, 28 Feb 2016 11:55:03 +0100 Subject: [PATCH] Here is a quick-and-dirty patch that fixes things up for me. Should be fine till an official update from 4.0.0 is available. --- default.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/default.py b/default.py index 8b56d8b..62aba4c 100644 --- a/default.py +++ b/default.py @@ -180,6 +180,7 @@ def rssParser(data): else: plot = infos[1].replace('\n','')+'\n\n'+infos[2] link = re.compile('(.+?)', re.DOTALL).findall(item)[0] + link = link.replace('&', '&') documentId = link.split('documentId=')[1] if '&' in documentId: documentId = documentId.split('&')[0] @@ -193,8 +194,11 @@ def rssParser(data): def runtimeToInt(runtime): t = runtime.replace('Min','').replace('min','').replace('.','').replace(' ','') - HHMM = t.split(':') - return int(HHMM[0])*60 + int(HHMM[1]) + if ':' in t: + HHMM = t.split(':') + return int(HHMM[0])*60 + int(HHMM[1]) + else: + return int(t) def checkLive(date): date = date.replace(' '+date.split(' ')[-1],'')#python 2.7 doesnt support %z