git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d5fd04b
)
clear cutlist when new service doesn't have cuesheet interface
author
Felix Domke
<tmbinc@elitedvb.net>
Wed, 11 Jul 2007 23:28:52 +0000
(23:28 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Wed, 11 Jul 2007 23:28:52 +0000
(23:28 +0000)
lib/python/Screens/InfoBarGenerics.py
patch
|
blob
|
history
diff --git
a/lib/python/Screens/InfoBarGenerics.py
b/lib/python/Screens/InfoBarGenerics.py
index 9fd676e9302549cdae840ae7e8c8d7d4952b8fcb..c3d15f09cd750fbe4bbd1d55fd70b0933dd5a7d0 100644
(file)
--- a/
lib/python/Screens/InfoBarGenerics.py
+++ b/
lib/python/Screens/InfoBarGenerics.py
@@
-1803,13
+1803,23
@@
class InfoBarCueSheetSupport:
if onlyreturn:
return None
if onlyreturn:
return None
+ def showAfterCuesheetOperation(self):
+ if isinstance(self, InfoBarShowHide):
+ self.doShow()
+
def addMark(self, point):
insort(self.cut_list, point)
self.uploadCuesheet()
def addMark(self, point):
insort(self.cut_list, point)
self.uploadCuesheet()
+ self.showAfterCuesheetOperation()
def removeMark(self, point):
self.cut_list.remove(point)
self.uploadCuesheet()
def removeMark(self, point):
self.cut_list.remove(point)
self.uploadCuesheet()
+ self.showAfterCuesheetOperation()
+
+ def showAfterCuesheetOperation(self):
+ if isinstance(self, InfoBarShowHide):
+ self.doShow()
def __getCuesheet(self):
service = self.session.nav.getCurrentService()
def __getCuesheet(self):
service = self.session.nav.getCurrentService()
@@
-1829,9
+1839,10
@@
class InfoBarCueSheetSupport:
cue = self.__getCuesheet()
if cue is None:
cue = self.__getCuesheet()
if cue is None:
- print "upload failed, no cuesheet interface"
- return
- self.cut_list = cue.getCutList()
+ print "download failed, no cuesheet interface"
+ self.cut_list = [ ]
+ else:
+ self.cut_list = cue.getCutList()
class InfoBarSummary(Screen):
skin = """
class InfoBarSummary(Screen):
skin = """