From b6935eac0f09fe3281a8e193f8f02dd01f24c409 Mon Sep 17 00:00:00 2001 From: Patrick Klein Date: Mon, 16 Apr 2018 00:04:17 -0700 Subject: [PATCH] codacy fixes --- resources/lib/synced.py | 5 +++++ resources/lib/update_pkl.py | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/lib/synced.py b/resources/lib/synced.py index 265d511..04730cd 100644 --- a/resources/lib/synced.py +++ b/resources/lib/synced.py @@ -26,6 +26,7 @@ def __init__(self, mainmenu): self.mainmenu = mainmenu self.dbh = DB_Handler() + @log_decorator def view(self): ''' displays all synced directories, which are selectable and lead to options. @@ -61,6 +62,7 @@ def view(self): return self.mainmenu.view() return self.mainmenu.view() + @log_decorator def localize_type(self, mediatype): ''' localizes tages used for identifying mediatype ''' if mediatype == 'movie': # Movies @@ -73,6 +75,7 @@ def localize_type(self, mediatype): return self.addon.getLocalizedString(32115) return mediatype + @log_decorator def options(self, item): ''' provides options for a single synced directory in a dialog window ''' #TODO: remove all from plugin @@ -91,6 +94,7 @@ def options(self, item): return self.view() return self.view() + @log_decorator def remove_all(self): ''' removes all synced directories ''' STR_REMOVE_ALL_SYNCED_DIRS = self.addon.getLocalizedString(32086) @@ -101,6 +105,7 @@ def remove_all(self): self.dbh.remove_all_synced_dirs() notification(STR_ALL_SYNCED_DIRS_REMOVED) + @log_decorator def update_all(self): ''' gets all items from synced directories, diff --git a/resources/lib/update_pkl.py b/resources/lib/update_pkl.py index c07762a..f148f13 100644 --- a/resources/lib/update_pkl.py +++ b/resources/lib/update_pkl.py @@ -5,7 +5,6 @@ import os import cPickle as pickle -import xbmc import xbmcaddon import xbmcgui