Skip to content

Commit

Permalink
make poster optional
Browse files Browse the repository at this point in the history
  • Loading branch information
im85288 committed Oct 6, 2015
1 parent 442c37f commit a064ec9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
7 changes: 6 additions & 1 deletion resources/lib/NextUpInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ def onInit(self):
except:
pass

self.getControl(3006).setImage(clearartimage)
try:
clearartimageControl = self.getControl(3006)
if clearartimageControl != None:
self.getControl(3006).setImage(clearartimage)
except:
pass

if rating is not None:
self.getControl(3003).setLabel(rating)
Expand Down
9 changes: 8 additions & 1 deletion resources/lib/StillWatchingInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@ def onInit(self):
# set the dialog data
self.getControl(4000).setLabel(name)
self.getControl(4006).setText(overview)
self.getControl(4001).setImage(image)

try:
posterControl = self.getControl(4001)
if posterControl is not None:
self.getControl(4001).setImage(image)
except:
pass

try:
thumbControl = self.getControl(4002)
if thumbControl is not None:
Expand Down

0 comments on commit a064ec9

Please sign in to comment.