pull/15/head
DiMartinoXBMC 2017-01-09 19:53:06 +03:00
parent 3eb68a166a
commit b925285c42
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ class SearchWindow(pyxbmct.AddonDialogWindow):
navi_file = os.path.join(__tmppath__, 'navi.txt') navi_file = os.path.join(__tmppath__, 'navi.txt')
if not xbmcvfs.exists(navi_file): if not xbmcvfs.exists(navi_file):
self.set_navi() self.set_navi()
with open(xbmc.translatePath(navi_file), 'wb') as f: f.write(str(self.navi)) with open(xbmc.translatePath(navi_file), 'w') as f: f.write(json.dumps(self.navi))
read = xbmcvfs.File(navi_file, 'r') read = xbmcvfs.File(navi_file, 'r')
navi = read.read() navi = read.read()
read.close() read.close()