New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
importwatchedstate ignored in advancedsettings.xml from Kodi 20.0 #24909
Comments
Issue confirmed. The only change I am aware of is the flipping of the default setting so userdata is not discarded by default... I am wondering if that change is correct? I don't see the use of |
On first look it seems like it's this location where the play count is used unconditionally: xbmc/xbmc/video/VideoDatabase.cpp Lines 1054 to 1058 in 122a369
This would have been introduced in #19367 commit 20c723a. I'll try to make a PR to fix this tomorrow. |
Thank you @neo1973 |
Bug report
Describe the bug
My collection consist of movies with local .nfo files. I use it shared between multiple devices, both: Windows PCs and Raspberry Pis with libreelec.
My media manger allows me to mark movies as watched, this puts <playcount>1</playcount> in the .nfo file.
Back in Kodi 19.5 if i wanted the scanner to pick them up as watched i had to add advancedsettings.xml with importwatchedstate set to true.
This is no longer needed in Kodi 20. The scanner will always pick them up as watched if playcount is 1.
The problem thou is now i want a new install on a Raspberry Pi to have everything as unwatched. But adding the advancedsettings.xml with importwatchedstate set to false won't work.
I have also confirmed this on one of my windows installs that had importwatchedstate set to true, by changing it to false. And then renaming a movie with <playcount>1</playcount> but it still gets picked up by the scanner as watched.
If i change playcount to 0 and rename the movie again, then it will be picked up by the scanner as unwatched.
I have zero explanation for this behavior, curiously i had a look at the source AdvancedSettings.cpp and VideoInfoScanner.cpp, and it looks like it should work. But without being able to add more traces to the log and recompile i can't figure out the problem.
Expected Behavior
With importwatchedstate set to false in advancedsettings.xml i expect the movie to be added by the scanner as unwatched even with playcount set to 1.
Actual Behavior
Movie is always added as watched regardless of importwatchedstate set to true or false.
Possible Fix
Go back to Kodi 19.5 or not use the playcount in the .nfo.
To Reproduce
Steps to reproduce the behavior:
Debuglog
The debuglog can be found here:
https://paste.kodi.tv/zevonexuqe.kodi
Screenshots
Additional context or screenshots (if appropriate)
I think this thread might describe the same problem:
https://forum.kodi.tv/showthread.php?tid=375066
Your Environment
Used Operating system:
Android
iOS
tvOS
Linux
macOS
Windows
Windows UWP
Operating system version/name: Windows 10, Windows 11, Libreelec
Kodi version: 20.0, 20.5, 21.0-rc2
note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.
The text was updated successfully, but these errors were encountered: