From 1d1cd4642c2a267cee640aae5a217f58696c2121 Mon Sep 17 00:00:00 2001 From: Alexander Seiler Date: Thu, 21 Mar 2024 04:51:07 +0100 Subject: [PATCH] Fix linter warnings --- lib/srgssr.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/srgssr.py b/lib/srgssr.py index 97b6a43..8742d90 100644 --- a/lib/srgssr.py +++ b/lib/srgssr.py @@ -1385,7 +1385,8 @@ def write_favourite_show_ids(self, show_ids): json.dump(show_ids_dict_list, f) def read_searches(self, filename): - path = xbmcvfs.translatePath(self.real_settings.getAddonInfo('profile')) + path = xbmcvfs.translatePath( + self.real_settings.getAddonInfo('profile')) file_path = os.path.join(path, filename) try: with open(file_path, 'r') as f: @@ -1408,7 +1409,8 @@ def write_search(self, filename, name, max_entries=10): searches.pop() searches.insert(0, name) write_dict_list = [{'search': entry} for entry in searches] - path = xbmcvfs.translatePath(self.real_settings.getAddonInfo('profile')) + path = xbmcvfs.translatePath( + self.real_settings.getAddonInfo('profile')) file_path = os.path.join(path, filename) if not os.path.exists(path): os.makedirs(path)