moreginger / xbmc-plugin.video.ted.talks

GNU General Public License v2.0
18 stars 20 forks source link

Remember seen videos #11

Open cristim opened 12 years ago

cristim commented 12 years ago

The plugin should remember the videos that have been seen and mark them as such in the UI.

moreginger commented 12 years ago

I just played a video, and it seemed to mark it watched (with a tick). Reopen if this isn't the desired behavior.

moreginger commented 12 years ago

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)
cristim commented 12 years ago

couldn't we have something similar?

MartijnKaijser commented 7 years ago

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