Using play() but not saving bookmark
#1
Hello, I'm using xbmc.player.play() to play back random intervals of movies from my library. I'd like it so it plays the clip but then doesn't save back the bookmark to the database (retains watched point or keeps it marked unwatched/watched). Is there a simple way I can achieve this while playing the item? Some sort of property?

Here's a portion of the code:

python:
listItem = xbmcgui.ListItem(path=item) 
listItem.setProperty("StartPercent", startPercentage)
xbmc.player.play(item=item, listitem=listItem, windowed=True)

Thank you!
Reply
#2
Player() does not save bookmarks. You need to use xbmcplugin.setResolvedUrl()
Reply
#3
(2017-12-19, 15:30)Roman_V_M Wrote: Player() does not save bookmarks. You need to use xbmcplugin.setResolvedUrl()
 Sorry, not sure if I'm using the term 'bookmark' properly. I'm using Player() to play back a video file within my Kodi library. When I play it from within my add-on (using the code in the main post) it then changes in my library as having been played to a point and I can 'resume' from the point it was stopped in the script. I'd like the file's playback within the script to have no effect on it's watched status within my Kodi library.

With my current code it DOES affect the file in my library and I'd like to prevent that.
Reply

Logout Mark Read Team Forum Stats Members Help
Using play() but not saving bookmark0