v20 Watch status reset when updated with Movie/TV show parsers in v20 (Nexus)
#1
I start default TV show parser (TheTVDB.com v4) every week (to update with new episode) and parser resets watch status for all previously episodes.
Movie parser (TheMoveDB python) also resets watch status of a movie.
It's only in v20 (Nexus).
Ubuntu 22.04, Linux desktop 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Kodi (20.1 (20.1.0) Git:20230312-289ec664e3). Platform: Linux x86 64-bit
Sony Android TV, Kodi 20.1
Reply
#2
Watched statuses are stored in the video database per existing video file. Any new video files will not touch existing video files. They never have with any parser.
Perhaps you providing us a debug log (wiki) will be a good starting point.
Reply
#3
I said about new episode in the same TV Show.
I update TV Show and all previously watched episodes of the same TV Show are unwatched now.
Or I update watched movie and this movie is unwatched now.
Of course I will make debug log and will attach to this thread.
Ubuntu 22.04, Linux desktop 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Kodi (20.1 (20.1.0) Git:20230312-289ec664e3). Platform: Linux x86 64-bit
Sony Android TV, Kodi 20.1
Reply
#4
It sounds like you're refreshing the info for all episodes of a show instead of just scanning for new episodes.  If you just scan for new video files in your library, everything already in your library shouldn't be touched.
Reply
#5
Of course  I update info for all TV Show.
I.e. I select TV Show, press I and select Update from Internet.
I made this in all previously version of Kodi since v14.
Previously watch status was unchanged by scrapers.

Debug Log
Ubuntu 22.04, Linux desktop 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Kodi (20.1 (20.1.0) Git:20230312-289ec664e3). Platform: Linux x86 64-bit
Sony Android TV, Kodi 20.1
Reply
#6
I made a simple test:
create new empty profile: test
create small video file: Babylon.mp4
define movie source with default movie scraper (TheMoveDB python)
scan movie
select movie, press C, select Mark as watched. I have watched movie (with check mark)
select movie, press I, select Refresh. I have unwatched movie (without check mark). This is wrong
Debug Log
Ubuntu 22.04, Linux desktop 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Kodi (20.1 (20.1.0) Git:20230312-289ec664e3). Platform: Linux x86 64-bit
Sony Android TV, Kodi 20.1
Reply
#7
confirmed the same behavior with scraper "the movie database python" however...

if you are refreshing from the info page it is effectively removing it from your library (including watched status) and re-adding it with new information

this is not the same functionality as what happens when using "update library"
Reply
#8
"Refresh" does indeed wipe the watched statuses of all episodes involved. Same as with movies. You're probably confused with its intended purpose.

If you want to add new episodes in a TV show, either use the "Update Library", or select the option "Scan for new content" from the context menu in the TV show listing.
Reply
#9
But in v19 Refresh didn't reset watched status. I can use this for refresh movie/episode info.
Update Library will be update very huge amount video files info (many hours) because of only 1 new episode (or new movie/episode info).
Scan for new files didn't work because I didn't add new file I only need get new info about all episodes from ThTVDB.com.
How can I Update Library only for 1 movie or TV Show (except downgrade to v19.4)? There isn't Update Library for 1 movie or TV Show.
Ubuntu 22.04, Linux desktop 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Kodi (20.1 (20.1.0) Git:20230312-289ec664e3). Platform: Linux x86 64-bit
Sony Android TV, Kodi 20.1
Reply
#10
Why are you constantly rescanning files? Once they're in the library, you shouldn't need to update them most of the time.
Reply
#11
(2023-02-15, 00:04)ray1112 Wrote: But in v19 Refresh didn't reset watched status. I can use this for refresh movie/episode info.

That's basically impossible. 'Refresh' does a full rescrape of a movie or tv show. In the video database, new file records (and internal ID's) are created for the scraped items. The watched statuses are linked to the old records, and the new records simply do not inherit them (although they should). And scrapers only provide metadata, they do not determine Kodi database handling.

I've been using MySQL databases since the very beginning (well, almost) of XBMC Eden upto now, and a Refresh has always lost any watched status of a video. Perhaps by a stroke of magic this does not happen with default SQLite databases (I never tested those on this 'problem'), but I doubt this happens at all.
Reply
#12
(2023-02-15, 00:21)NeoCortex Wrote: Why are you constantly rescanning files? Once they're in the library, you shouldn't need to update them most of the time.
Because when a movie or series just came out in the internet database there is only very scarce data about it. After 2-3 days, the information is replenished (a normal description, covers, etc. is added) and although I have already watched the film (it already has the status Watched), I update the information about it with a more complete one for the future.
Ubuntu 22.04, Linux desktop 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Kodi (20.1 (20.1.0) Git:20230312-289ec664e3). Platform: Linux x86 64-bit
Sony Android TV, Kodi 20.1
Reply
#13
(2023-02-15, 00:26)Klojum Wrote: I've been using MySQL databases since the very beginning (well, almost) of XBMC Eden upto now, and a Refresh has always lost any watched status of a video. Perhaps by a stroke of magic this does not happen with default SQLite databases (I never tested those on this 'problem'), but I doubt this happens at all.
OK. So far I see the only way to solve this problem: downgrade to v19.4.
Thank you all for your time.
Ubuntu 22.04, Linux desktop 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Kodi (20.1 (20.1.0) Git:20230312-289ec664e3). Platform: Linux x86 64-bit
Sony Android TV, Kodi 20.1
Reply
#14
(2023-02-15, 00:04)ray1112 Wrote: But in v19 Refresh didn't reset watched status.
I just tested this and you're wrong it resets the watched status.
Reply
#15
(2023-02-15, 00:37)ray1112 Wrote: Because when a movie or series just came out in the internet database there is only very scarce data about it. After 2-3 days, the information is replenished (a normal description, covers, etc. is added) and although I have already watched the film (it already has the status Watched), I update the information about it with a more complete one for the future.

I concur with this need.  I have an HDHomerun OTA recording system which records a lot of TV shows in real time and then my centralized sharing solution grabs the metadata, artwork etc. and then sync to all of my Kodi clients (within 2 minutes) automatically.  It generally works well but sometimes, as you describe,  the new shows and TV series the metadata haven't been updated, especially for the plot and similar.  Fortunately I can go into my GUI and right click on an episode, season, series or more and either do a selective update or overwrite of the data (the metadata, artwork, thumbnails etc..).  The update doesn't delete anything existing just updates missing  metadata, artwork etc.  I don't have to use it  that often but it is nice to have it handy. 

I haven't played much with the native Kodi scrapers but it would seem like having the ability to update without an overwrite of existing data would seem desirable.   Having spent quite a bit of time writing code for synchronizing data into the Kodi database structures and doing delta comparisons between current and new, I know it is likely quite a bit of work if the scrapers don't support it now.    Overwriting is a simpler, cleaner and a more stable approach with some downsides. 


Thanks,

Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , CBC Sports, Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply

Logout Mark Read Team Forum Stats Members Help
Watch status reset when updated with Movie/TV show parsers in v20 (Nexus)0