mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Adjust delete logic for entrypoint
This commit is contained in:
parent
9ab82905cb
commit
db4cb448b0
1 changed files with 18 additions and 18 deletions
|
@ -118,10 +118,13 @@ def resetDeviceId():
|
||||||
line1=language(33033))
|
line1=language(33033))
|
||||||
xbmc.executebuiltin('RestartApp')
|
xbmc.executebuiltin('RestartApp')
|
||||||
|
|
||||||
##### Delete Item, like the context menu action
|
##### Delete Item
|
||||||
def deleteItem():
|
def deleteItem():
|
||||||
|
|
||||||
# Serves as a keymap action
|
# Serves as a keymap action
|
||||||
|
if xbmc.getInfoLabel('ListItem.Property(embyid)'): # If we already have the embyid
|
||||||
|
embyid = xbmc.getInfoLabel('ListItem.Property(embyid)')
|
||||||
|
else:
|
||||||
dbid = xbmc.getInfoLabel('ListItem.DBID')
|
dbid = xbmc.getInfoLabel('ListItem.DBID')
|
||||||
itemtype = xbmc.getInfoLabel('ListItem.DBTYPE')
|
itemtype = xbmc.getInfoLabel('ListItem.DBTYPE')
|
||||||
|
|
||||||
|
@ -139,9 +142,6 @@ def deleteItem():
|
||||||
utils.logMsg("EMBY delete", "Unknown type, unable to proceed.", 1)
|
utils.logMsg("EMBY delete", "Unknown type, unable to proceed.", 1)
|
||||||
return
|
return
|
||||||
|
|
||||||
if xbmc.getInfoLabel('ListItem.Property(embyid)'): # If we already have the embyid
|
|
||||||
embyid = xbmc.getInfoLabel('ListItem.Property(embyid)')
|
|
||||||
else:
|
|
||||||
embyconn = utils.kodiSQL('emby')
|
embyconn = utils.kodiSQL('emby')
|
||||||
embycursor = embyconn.cursor()
|
embycursor = embyconn.cursor()
|
||||||
emby_db = embydb.Embydb_Functions(embycursor)
|
emby_db = embydb.Embydb_Functions(embycursor)
|
||||||
|
|
Loading…
Reference in a new issue