mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-12-13 02:23:18 +00:00
Fix delete settings
This commit is contained in:
parent
582949e79c
commit
5a2b8b7cfd
4 changed files with 12 additions and 11 deletions
|
|
@ -394,16 +394,17 @@ class Player( xbmc.Player ):
|
|||
utils.window('SkipWatched%s' % itemId, "true")
|
||||
|
||||
self.stopPlayback(data)
|
||||
offerDelete = False
|
||||
offerDelete = utils.settings('offerDelete') == "true"
|
||||
offerTypeDelete = False
|
||||
|
||||
if type == "Episode" and utils.settings('offerDeleteTV') == "true":
|
||||
offerDelete = True
|
||||
offerTypeDelete = True
|
||||
|
||||
elif type == "Movie" and utils.settings('offerDeleteMovies') == "true":
|
||||
offerDelete = True
|
||||
offerTypeDelete = True
|
||||
|
||||
if percentComplete >= markPlayedAt and offerDelete:
|
||||
# Item could be stacked, so only offer to delete the main item.
|
||||
if percentComplete >= markPlayedAt and offerDelete and offerTypeDelete:
|
||||
# Make the bigger setting be able to disable option easily.
|
||||
self.logMsg("Offering deletion for: %s." % itemId, 1)
|
||||
return_value = xbmcgui.Dialog().yesno("Offer Delete", "Delete %s" % currentFile.split("/")[-1], "on Emby Server?")
|
||||
if return_value:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue