Skip to content

Commit

Permalink
codacy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-klein committed Apr 16, 2018
1 parent 8c39416 commit b6935ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions resources/lib/synced.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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)
Expand All @@ -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,
Expand Down
1 change: 0 additions & 1 deletion resources/lib/update_pkl.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import os
import cPickle as pickle

import xbmc
import xbmcaddon
import xbmcgui

Expand Down

0 comments on commit b6935ea

Please sign in to comment.