Don't show coming soon when no dvd release is set

This commit is contained in:
Ruud
2013-06-30 15:21:06 +02:00
parent 58c446de2d
commit 6f42b4c316

View File

@@ -93,8 +93,8 @@ class Dashboard(Plugin):
})
# Don't list older movies
if ((not late and (not eta.get('dvd') or (eta.get('dvd') and eta.get('dvd') > (now - 2419200)))) or \
(late and eta.get('dvd') and eta.get('dvd') < (now - 2419200))):
if ((not late and ((not eta.get('dvd') and not eta.get('theater')) or (eta.get('dvd') and eta.get('dvd') > (now - 2419200)))) or \
(late and (eta.get('dvd', 0) > 0 or eta.get('theater')) and eta.get('dvd') < (now - 2419200))):
movies.append(temp)
if len(movies) >= limit: