Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
goggle committed Mar 21, 2024
1 parent 573612a commit 1d1cd46
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/srgssr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)
Expand Down

0 comments on commit 1d1cd46

Please sign in to comment.