Move removal to context menu

There was a typo in the delete as well.  Remove videolibrary.on.remove
due to potential issue if clean database runs and user is using plugin
paths.
This commit is contained in:
angelblue05 2016-02-16 22:13:10 -06:00
parent 48332fdbb7
commit 228501d99c
2 changed files with 29 additions and 5 deletions

View file

@ -162,8 +162,11 @@ class KodiMonitor(xbmc.Monitor):
elif method == "VideoLibrary.OnRemove":
try:
# Removed function, because with plugin paths + clean library, it will wipe
# entire library if user has permissions. Instead, use the emby context menu available
# in Isengard and higher version
pass
'''try:
kodiid = data['id']
type = data['type']
except (KeyError, TypeError):
@ -192,7 +195,7 @@ class KodiMonitor(xbmc.Monitor):
self.logMsg("Deleting request: %s" % itemid)
doUtils.downloadUrl(url, type="DELETE")
finally:
embycursor.close()
embycursor.close()'''
elif method == "System.OnWake":