From 0dbf9c544a5da8abd96a73d8298274ae9d06ed91 Mon Sep 17 00:00:00 2001 From: Intel1 <25161862+Intel11@users.noreply.github.com> Date: Wed, 22 Nov 2017 09:42:26 -0500 Subject: [PATCH] Update infoplus.py --- plugin.video.alfa/channels/infoplus.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin.video.alfa/channels/infoplus.py b/plugin.video.alfa/channels/infoplus.py index fff79d6a..bd20e668 100755 --- a/plugin.video.alfa/channels/infoplus.py +++ b/plugin.video.alfa/channels/infoplus.py @@ -177,7 +177,8 @@ class main(xbmcgui.WindowDialog): self.infoLabels["originaltitle"] = otmdb.result.get("original_title", otmdb.result.get("original_name", "")) self.trailers = otmdb.get_videos() - self.infoLabels["duration"] = int(otmdb.result.get("runtime", 0)) + if otmdb.result.get("runtime", 0): + self.infoLabels["duration"] = int(otmdb.result.get("runtime", 0)) else: self.trailers = []