Posts: 19
Joined: Oct 2004
Reputation:
0
2011-12-31, 20:25
(This post was last modified: 2011-12-31, 20:28 by eydaimon.)
What logic does XBMC use to mark a video as "seen" ?
Also if someone could refer to where in the code this happens that would be nice too.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
Easiest to read yourself. See utils/savefilestate.h and the code in application.cpp using it.
Posts: 19
Joined: Oct 2004
Reputation:
0
My experience has told me that this way of checking if a file has been played is unreliable. Files get moved, etc. Wouldn't it be better to do a hash of the file or some portion of the file and judge if the file has already been played based on that?
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
Much crap for little gain. Imo. Files don't move about on my disks..
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
i think a patch would be welcome yes.