View Full Version : How to retain watched marker after update
Hi,
I'm adding episodes to my library for different seasons than I'm currently watching (ie I'm watching season 1 and adding episodes to seasons 2, 3 and 4). Problem is, when I update the library to include the new episodes, all the watched markers disappear which is very annoying.
Is there any way to retain the watched flag through an update of TV episode information? Any help would be much appreciated.
Good question. I haven't tested the library to that degree of detail, but I'd certainly be looking for the same "Watched" retention if/when I do move towards a stable state.
p.s. I'd also want to make sure any progress markers were retained, per profile, for any show/movies that I've partially viewed.
watched status is kept in the database, so it should be retained. however, if you're upgrading from a very old version to a very recent version, the database could get messed up. xbmc tries to upgrade the database in these cases, but i can't speak for how well it may actually work.
matt_cyr
2008-07-05, 08:51
watched status is kept in the database, so it should be retained.
Not sure how correct this works then. I've had my watched status clear on me a lot and have only once had to delete my database. It seems to happen regularly when doing an update library call.
jmarshall
2008-07-05, 09:21
If it refreshes the folder then yes, it will remove the watched status. This will be fixed if we switch to an update rather than delete/add, alternatively grabbing all info during delete and keeping track of it.
oh i misunderstood. i thought you meant updating xbmc. i have this on my personal todo list to address. i can not give you an eta. honestly, i may never get around to it. right now i'm concentrating on stacking of duplicate entries.
but, i've been doing tons of updates in the last week or so, and i've not lost episode watched status. however, i think i know why this happens. i believe it occurs when new files are added to previously scraped folder. xbmc maintains a content hash for scraped folders to determine if something is different. if nothing has changed, it skips over it. once the tvshow stacking is in place and it shouldn't be too much longer now, a workaround would be to add the new episodes to a new location, and xbmc will combine them together.
jmarshall
2008-07-06, 01:01
I believe your analysis is correct, yes. If the hash changes the files are removed and then rescraped. Music does it slightly differently: It RemovesSongsFromPath() which does a fetch into a map then remove. We then check whether stuff is in the map and use the additional fields that the db has when we re-add them. An alternative would be an update rather than an add/delete, though IIRC there were troubles with them in the past, but I can't recall exactly what said troubles were.