From b925285c42c44d4cae128fb2e36ba128a040031d Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Mon, 9 Jan 2017 19:53:06 +0300 Subject: [PATCH] fixes --- searchwindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searchwindow.py b/searchwindow.py index 3e9916a..ef466c5 100644 --- a/searchwindow.py +++ b/searchwindow.py @@ -240,7 +240,7 @@ class SearchWindow(pyxbmct.AddonDialogWindow): navi_file = os.path.join(__tmppath__, 'navi.txt') if not xbmcvfs.exists(navi_file): 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') navi = read.read() read.close()