xbmc / chorus2

Official Kodi Web Interface
GNU General Public License v2.0
333 stars 116 forks source link

Kodi web-ui (E.g., Chorus) does not properly update kodi with watched status for large updates #589

Open noybman opened 2 months ago

noybman commented 2 months ago

Kodi, Chorus, web interface does not successfully set and remember watched status. Simply stated, I recently had a Windows 11 Pro crash, and upon reboot, all of my databases were wiped out profile blank etc. I didn't have recent backups. My fault. Thus - I decided to do a new import. I've actually done FRESH import more than a handful of times over the years. So I've seen this problem FOR MANY YEARS *(going back to Kodi 18 at least, probably before too), I've never reported it because its so rare I actually do this.

I have noticed, when "BULK" selecting "WATCHED" status for titles, it shows as watched in teh web-ui, you can click more than a few dozen, and when you come back in to the screen (in other words, refresh) a while later, they ARE NOT marked watched.

Also - as I stated, the DBs were wiped out. So I had to start with an entirely new setup (yes, I reinstalled and did a clean scan of the library). Ironically, as I am BULK selecting titles to mark as watched, I would later notice MORE titles I had not even marked yet, WERE ALREADY MARKED..... Not possible, since, NONE of them had watched status yet. (its a fresh db, remember?)

In CHORUS, I click "Movies" then "All Movies" then "Year" then ascending *(so starting with the oldest year up top).... and off I go, setting the watched status.

As noted, it doesn't work correctly. It appears to accept only a couple, and it DOES set others watched that were not clicked.

Expected Behavior

Kodi should be updated to correctly recall the watched status flag set via the web interface. Further, titles that were not clicked should not be showing as clicked if they are not. I did confirm they are also showing as "WATCHED" in Kodi as well... but these are titles I had not even touched yet. This means that Chorus may be sending watched flags for incorrect titles.

Actual Behavior

Unable to pinpoint. Some titles get marked watched that I click on, others get marked watched that I never clicked on, and most of the titles I clicked on never saved as being clicked on.

Possible Fix

No idea. It's a large database. Scanning was complete. There were no file changes ongoing. All the folders are typically named: Movie.Title.(year).

To Reproduce

Steps to reproduce the behavior:

  1. Start with a clean Database for good measure
  2. Scan in a LARGE list of movies, (the larger the better is my guess), 2085 in my case.
  3. Load Chorus, choose Movies, All Movies, Sort by Year, ascending...
  4. Click on 3-4 dozen movies at least. Skip some here and there, just work your way down the list....
  5. You will soon observe titles you are just scrolling upon, will already be marked!!!! (obviously NOT POSSIBLE).... but they are!
  6. Do a few more......
  7. Refresh teh chorus window,
  8. repeat the arrangment order noted above,
  9. Go look at the list, you will see DOZENS of titles you clicked on NOT marked watched.
  10. Go look in Kodi, you will see dozens of titles you hadn't even clicked on marked watched....

This is purely nuts. If I do the same thing INSIDE kodi, and press "w" it works correctly.

Debuglog

Screenshots

Your Environment

Used Operating system: