aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/MovieList.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2008-10-05 22:37:19 +0000
committerFelix Domke <tmbinc@elitedvb.net>2008-10-05 22:37:19 +0000
commit3abc3a286970d03d9cde95d11328843907f10609 (patch)
tree7527bd655de09066e877114b21c5fefc9cb7e8ba /lib/python/Components/MovieList.py
parentbb8df1e39d1d6ff0da067cad05492bb5f388b124 (diff)
downloadenigma2-3abc3a286970d03d9cde95d11328843907f10609.tar.gz
enigma2-3abc3a286970d03d9cde95d11328843907f10609.zip
add possibility to disable loading the length of movies (experts only, sorry)
Diffstat (limited to 'lib/python/Components/MovieList.py')
-rw-r--r--lib/python/Components/MovieList.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/python/Components/MovieList.py b/lib/python/Components/MovieList.py
index a0bd7334..ace36012 100644
--- a/lib/python/Components/MovieList.py
+++ b/lib/python/Components/MovieList.py
@@ -2,6 +2,7 @@ from GUIComponent import GUIComponent
from Tools.FuzzyDate import FuzzyTime
from ServiceReference import ServiceReference
from Components.MultiContent import MultiContentEntryText
+from Components.config import config
from enigma import eListboxPythonMultiContent, eListbox, gFont, iServiceInformation, \
RT_HALIGN_LEFT, RT_HALIGN_RIGHT, eServiceReference, eServiceCenter
@@ -83,13 +84,19 @@ class MovieList(GUIComponent):
if len <= 0: #recalc len when not already done
cur_idx = self.l.getCurrentSelectionIndex()
x = self.list[cur_idx]
- len = x[1].getLength(x[0]) #recalc the movie length...
+ if config.usage.load_length_of_movies_in_moviellist.value:
+ len = x[1].getLength(x[0]) #recalc the movie length...
+ else:
+ len = 0 #dont recalc movielist to speedup loading the list
self.list[cur_idx] = (x[0], x[1], x[2], len) #update entry in list... so next time we don't need to recalc
if len > 0:
len = "%d:%02d" % (len / 60, len % 60)
else:
- len = "?:??"
+ if config.usage.load_length_of_movies_in_moviellist.value:
+ len = "?:??"
+ else:
+ len = "X:XX"
res = [ None ]