mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-20 15:10:31 +00:00
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:
parent
48332fdbb7
commit
228501d99c
2 changed files with 29 additions and 5 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue