+import vbcfg
+
class BookmarkData:
def __init__(self, _id, _title, _url, _parent, _type):
self.mId = _id
def _read(self):
if self.mDataValid:
return
- print "populate!!"
self.mConfig.read(self.mFileName)
self.mCategoryCurrentIdx = self.getNumber('__SYS__', 'category_current_idx')
self.mPopulateValid = False
def _del(self, _section, _option=None):
- #print _section, ' :', _option
if _option is None:
if not self.exist(_section):
return
try:
data = self.mConfig.get(_section, _option)
except Exception, e:
- #print e
+ vbcfg.ERR(e)
return _default
else : return data
f = file('/proc/stb/info/vumodel')
model = f.read().strip()
f.close()
- manualmode = (model == "solo2" or model == "duo2")
+ manualmode = (model == "solo2" or model == "duo2" or model == "solose")
os.system('echo "[__SYS__]" > %s'%(_dbFileName))
os.system('echo "category_current_idx = 1" >> %s'%(_dbFileName))
if not self.mDebugEnable:
return
if params is None:
- print format
- else: print format % (params)
+ vbcfg.DEBUG(format)
+ else:
+ vbcfg.DEBUG(format % (params))
def getBookmark(self, _title):
self.populate()
@staticmethod
def getInstance():
- return BookmarkManager('/usr/lib/enigma2/python/Plugins/Extensions/HbbTV/bookmark.ini')
+ return BookmarkManager(vbcfg.PLUGINROOT + "/bookmark.ini")