Merge branch 'refs/heads/develop'

This commit is contained in:
Ruud
2014-06-02 15:10:29 +02:00
2 changed files with 8 additions and 3 deletions
@@ -39,6 +39,11 @@ class IMDBBase(Automation, RSS):
except: except:
try: try:
split = splitString(html, split_on = "<div id=\"main\">") split = splitString(html, split_on = "<div id=\"main\">")
if len(split) < 2:
log.error('Failed parsing IMDB page "%s", unexpected html.', url)
return []
html = BeautifulSoup(split[1]) html = BeautifulSoup(split[1])
for x in ['list compact', 'lister', 'list detail sub-list']: for x in ['list compact', 'lister', 'list detail sub-list']:
html2 = html.find('div', attrs = { html2 = html.find('div', attrs = {
+3 -3
View File
@@ -258,14 +258,14 @@ class CoreNotifier(Notification):
messages = [] messages = []
# Get unread # Get last message
if init: if init:
db = get_db() db = get_db()
notifications = db.all('notification_unread', with_doc = True) notifications = db.all('notification', with_doc = True)
for n in notifications: for n in notifications:
if n['doc'].get('time') > (time.time() - 259200): if n['doc'].get('time') > (time.time() - 604800):
messages.append(n['doc']) messages.append(n['doc'])
return { return {