2018-11-19, 20:39
OK, I have fixed the constraint violation errors https://github.com/xbmc/xbmc/pull/14906 which will be in v18 RC1 release. Thanks @tkgafs for reporting this. The db is left in an OK state, but the errors were slowing the scan, I had overlooked removing some records before recreating them on album update. Sorry for taking so long to fix but I have had family stuff to deal with.
As for the clock-change related library total rescan (if beahves as if every file has changed and recreates every library entry), I really don't know how to stop that. It is only on Samba drives as far as I can tell, and something to do with how the hash is created. So if anyone has ideas why file timestamp and name produces a different hash combo after clock-change on Samba drives and how we can avoid it then I am happy to hear them.
As for the clock-change related library total rescan (if beahves as if every file has changed and recreates every library entry), I really don't know how to stop that. It is only on Samba drives as far as I can tell, and something to do with how the hash is created. So if anyone has ideas why file timestamp and name produces a different hash combo after clock-change on Samba drives and how we can avoid it then I am happy to hear them.