xbmc-plugin.video.ted.talks
xbmc-plugin.video.ted.talks copied to clipboard
Remember seen videos
The plugin should remember the videos that have been seen and mark them as such in the UI.
I just played a video, and it seemed to mark it watched (with a tick). Reopen if this isn't the desired behavior.
Ah I see, it remembers only until the list of talks is refreshed.
I think YouTube does this by storing something in the settings:
YouTubePlayer.py
self.__settings__.setSetting( "vidstatus-" + video['videoid'], "7" )
YouTubeCore.py
overlay = self.__storage__.retrieveValue("vidstatus-" + video['videoid'] )
if overlay:
print self.__plugin__ + " _getvideoinfo videoid set to false XXXX XXXX : " + repr(overlay)
video['Overlay'] = int(overlay)
couldn't we have something similar?
I think you need to set playcount yourself or not at all (iirc) so Kodi auto recognises it's same URL and gets the playcount from it's database