From 793e03da7effff9a9c1cd7a6d79de2ad6cf934ba Mon Sep 17 00:00:00 2001 From: markjfine Date: Mon, 19 Apr 2021 19:53:27 -0400 Subject: [PATCH] Display of logo images Fixes display of logo images regardless of XHDR state if no image is currently displayed. --- nrsc5-dui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nrsc5-dui.py b/nrsc5-dui.py index 5134775..00361af 100644 --- a/nrsc5-dui.py +++ b/nrsc5-dui.py @@ -933,12 +933,12 @@ class NRSC5_DUI(object): # technically we should show the file with the matching lot id #if (int(self.lastXHDR[1]) > 0 and self.streamInfo["Cover"] != None): - if self.lastXHDR == "0": + if ((self.lastXHDR == "0") and (self.streamInfo["Cover"] != "")): imagePath = os.path.join(aasDir, self.streamInfo["Cover"]) image = self.streamInfo["Cover"] #print("lastXHDR is 0, set image to Cover:"+imagePath) #elif (int(self.lastXHDR[1]) < 0 or self.streamInfo["Cover"] == None): - elif self.lastXHDR == "1": + elif (((self.lastXHDR == "1") or (self.lastImage != "")) and (self.streamInfo["Logo"] != "")): imagePath = os.path.join(aasDir, self.streamInfo["Logo"]) image = self.streamInfo["Logo"] #print("lastXHDR is 1, set image to Logo:"+imagePath)