Skip to content

Commit 4c2231d

Browse files
author
Littlesat
committed
Bring back limitation to 32 bit integer in VariableValue.py
This resolved a crash in the MovieList when some 'recordings' have strange unexpected data. This limitation was likely incidentacly removed in 9ccb96b While it was already added in 9ace786 For more info https://forums.openpli.org/topic/104851-crash-while-navigating-a-video-list/
1 parent 6267446 commit 4c2231d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/python/Components/VariableValue.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ def setValue(self, value):
1010
except:
1111
self.__value = 0
1212
if self.instance:
13-
self.instance.setValue(self.__value)
13+
try:
14+
self.instance.setValue(self.__value)
15+
except TypeError:
16+
self.instance.setValue(0)
1417

1518
def getValue(self):
1619
return self.__value

0 commit comments

Comments
 (0)