From: Felix Domke Date: Mon, 27 Feb 2006 22:02:53 +0000 (+0000) Subject: make getCurrentPosition useable from other classes X-Git-Tag: 2.6.0~3961 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/de0875117ca72715893feb9183a498c2942d7da5?hp=8173cd589424b450c648ccd565e3933d570bc741;ds=sidebyside make getCurrentPosition useable from other classes --- diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index 0e186fff..d6a10012 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -1232,7 +1232,7 @@ class InfoBarCueSheetSupport: return None return service.seek() - def __getCurrentPosition(self): + def cueGetCurrentPosition(self): seek = self.__getSeekable() if seek is None: return None @@ -1242,7 +1242,7 @@ class InfoBarCueSheetSupport: return long(r[1]) def jumpPreviousNextMark(self, cmp, alternative=None): - current_pos = self.__getCurrentPosition() + current_pos = self.cueGetCurrentPosition() if current_pos is None: return mark = self.getNearestCutPoint(current_pos, cmp=cmp) @@ -1275,7 +1275,7 @@ class InfoBarCueSheetSupport: return nearest def toggleMark(self, onlyremove=False, onlyadd=False, tolerance=5*90000): - current_pos = self.__getCurrentPosition() + current_pos = self.cueGetCurrentPosition() if current_pos is None: print "not seekable" return