Don't try to parse None on IMDB watchlist

This commit is contained in:
Ruud
2013-01-22 22:55:06 +01:00
parent 1a89d551dc
commit 8ed2a99830
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ class Automation(Plugin):
fireEvent('schedule.interval', 'automation.add_movies', self.addMovies, hours = self.conf('hour', default = 12))
if Env.get('dev'):
if not Env.get('dev'):
addEvent('app.load', self.addMovies)
def addMovies(self):

View File

@@ -27,7 +27,7 @@ class IMDB(Automation, RSS):
try:
rss_data = self.getHTMLData(url)
imdbs = getImdb(rss_data, multiple = True)
imdbs = getImdb(rss_data, multiple = True) if rss_data else []
for imdb in imdbs:
movies.append(imdb)