v18 LibreELEC Testbuilds for RaspberryPi (Kodi 18.0)
(2017-10-08, 23:42)Milhouse Wrote:
(2017-10-08, 01:32)pyrodex Wrote: UPDATE: I was curious if the SAME machine with the same KODI settings as mentioned above would exhibit the problem with an NFS source and LOCALDB so I was able to try it out and not reproduce the issue. This led me to thinking maybe it was something with MySQL so I attempted Kodi to use a new MySQL name instead of the default and basically have a new Database. I then tested the same test case with a new MySQL DB of a custom name and didn't have the problem. Reverted back to my MySQL DB and had the problem, so I wiped the DB from the MySQL server and had Kodi recreate it with no issues. I didn't lose much since I purge my watched shows but not sure if this was just something maybe carried over recently but I am still at a loss for words.

Sounds like a corrupt database, or incorrect metadata - did you check the runtime for S01E04 to make sure it was correct and not ridiculously short? Maybe Kodi is calculating 90% of the runtime metadata field and if that field is massively incorrect then Kodi might think that 10 minutes is 90% of the run time and bump the playcount. If you are using NFOs with embedded streamdetails then check them to make sure the calculated runtime is correct.

I've just checked with 1008 and a MySQL db and Kodi is spot on when setting the playcount - an episode that is 1:01:43 (3703 seconds) long bumps the playcount when stopping after 00:55:32 (3332 seconds), which is 90%, and not before.

Not to beat a dead horse but I think I found the cause of this and it wasn't a corrupt DB issue. On a few select clients I have video cache settings to help with skipping video when background disk IO is heavy on the NAS or even on remote VPN clients (for when I travel). I used http://kodi.wiki/view/HOW-TO%3AModify_the_video_cache as the model and have Example 1 on my MAC Laptop for when I travel and Example 4 on my main RPI3s.

I think Kodi is caching the entire file, which is expected behavior, but once the cache is there it is causing a playcount to be incremented even though the show isn't over. I can reproduce this behavior on a system with a fresh Kodi directory with advanced settings for the MySQL AND caching, without caching I can't reproduce this issue.
HTPC(s): All running LibreELEC
  • AMD 2200G APU on Gigabyte AB350N-Gaming WIFI-CF
  • RPI3 x2 | RPI2 x2
NAS: FreeNAS (Latest Stable) | NFS/CIFS


Messages In This Thread
WD MyCloud - by crisp waffles - 2017-09-06, 03:11
RE: LibreELEC Testbuilds for RaspberryPi (Kodi 18.0) - by pyrodex - 2017-10-09, 18:19
No 3D Playback since Version - by Mike74 - 2017-10-09, 19:25
Migrating from RPi2 to RPi1 - by RappaSan - 2017-11-10, 14:45
RE: Migrating from RPi2 to RPi1 - by Milhouse - 2017-11-10, 21:06
RE: Migrating from RPi2 to RPi1 - by RappaSan - 2017-11-11, 09:17
Resolution broken after 0415 - by lozbrown85 - 2018-04-20, 11:48
popt 1.16 - by n0n4m3 - 2018-06-29, 00:28
RE: popt 1.16 - by Milhouse - 2018-06-29, 06:39
A plugin to be resurrected - by ArminiusTux - 2018-10-22, 22:02
RE: A plugin to be resurrected - by Milhouse - 2018-10-23, 02:46
Logout Mark Read Team Forum Stats Members Help
LibreELEC Testbuilds for RaspberryPi (Kodi 18.0)24