updating video library takes long time
#1
Recently I noticed that updating video library takes longer than before
so when I checked kodi log I noticed that it detects changes to my folders

Code:
13:45:27 T:140623839475456   DEBUG: VideoInfoScanner: Rescanning dir 'smb://PAYAM-UBUNTU/tvseries1/Humans/Season 1/' due to change (AEA5E0ABD251890238916D613F63D94A != 5C3CE9B0F4C7D3C0F21CDA2555170EE7)

and this happens every now and then without any reason that I know of.
some times it doesnt detect changes for days, and some times it detect changes after 1 hour of library update

I have kodi 15.1 with mysql on my ubuntu 14.04 and update the library only from ubuntu, other devices are kodi 15.1 too but only read and never update library.
Proud xbmp/xbmc/kodi user since early days of 1st gen xbox

Reply
#2
so I checked folder contents, they are all intact and time stamps shows nothing chnaged but kodi keep detecting changes


any help Huh
Proud xbmp/xbmc/kodi user since early days of 1st gen xbox

Reply
#3
any help ?
Proud xbmp/xbmc/kodi user since early days of 1st gen xbox

Reply
#4
Read http://forum.kodi.tv/showthread.php?tid=233369 and try again
Reply
#5
Sorry, never thought full log is required for my problem, will send as soon as it happens again.
Thnx anyway.
Proud xbmp/xbmc/kodi user since early days of 1st gen xbox

Reply
#6
A full, complete, unedited, unadulterated and in a pastebin Debug Log is required for any problem. (except for passwords etc)

Its not up to who asks for help to decide what information the helper needs to see or not see in order to provide better assistance. Big Grin Within reason.

In the meanwhile you may want to add a little line to your advancedsettings.xml and see how that goes.
Code:
<advancedsettings>
<videolibrary>
    <usefasthash>true</usefasthash> <!-- defaults to true. Set to false in order to skip hashing based on the folders modification time. -->
  </videolibrary>
</advancedsettings>
Reply
#7
Here is a fresh log of my latest video update.
kodi.log ( it was too big to use pastebin)

here is ls-la of one of the tv shows that it detected as changed

ls -la /media/media5/HDTV/Band\ of\ Brothers/
Code:
total 2544
drwxrwxr-x 6 payam payam   4096 Aug 18 20:13 .
drwxrwxrwx 8 payam payam   4096 Jan 11  2015 ..
drwxrwxr-x 2 payam payam   4096 Aug 18 20:13 .actors
-rwxr--r-- 1 payam payam  35046 Aug 18 20:13 banner.jpg
-rwxr--r-- 1 payam payam 223298 Apr 13  2012 character.png
-rw-rw-r-- 1 payam payam 223989 May  4 22:25 clearart.png
drwxrwxr-x 2 payam payam   4096 Mar 15  2014 extrafanart
-rwxr--r-- 1 payam payam 528708 Aug 18 20:13 fanart.jpg
-rwxr--r-- 1 payam payam  34985 Feb 27  2013 folder.jpg
-rw-r--r-- 1 payam payam  51823 Dec 14  2011 landscape.jpg
-rw-rw-r-- 1 payam payam 262808 May  4 22:25 logo.png
-rwxr--r-- 1 payam payam 102565 Aug 18 20:13 poster.jpg
-rw-rw-r-- 1 payam payam  72026 May  8 07:39 season01-banner.jpg
-rwxr--r-- 1 payam payam   8424 May  4 22:25 season01-poster.jpg
-rwxr--r-- 1 payam payam  94346 Feb 27  2013 season01.tbn
-rwxr--r-- 1 payam payam  67670 Mar 26  2012 season0-landscape.jpg
-rwxr--r-- 1 payam payam  96763 Mar 25  2012 season0-poster.jpg
drwxrwxr-x 3 payam payam   4096 Jan 10  2015 Season 1
-rwxr--r-- 1 payam payam  72026 Mar 25  2012 season1-banner.jpg
-rwxr--r-- 1 payam payam  68957 Mar 26  2012 season1-landscape.jpg
-rwxr--r-- 1 payam payam  81051 Mar 25  2012 season1-poster.jpg
-rw-rw-r-- 1 payam payam  48237 May  8 07:40 season-all-banner.jpg
-rwxr--r-- 1 payam payam  97914 Dec 27  2014 season-all-poster.jpg
-rwxr--r-- 1 payam payam  81306 Feb 27  2013 season-all.tbn
-rwxr--r-- 1 payam payam  73960 Dec 27  2014 season-specials-banner.jpg
-rw-rw-r-- 1 payam payam  36775 May  4 22:25 season-specials-poster.jpg
-rw-rw-r-- 1 payam payam  96763 Jan 11  2015 season-specials.tbn
drwxr-xr-x 2 payam payam   4096 Sep  4  2014 Themes
-rw-rw-r-- 1 payam payam  61226 May  4 22:25 thumb.jpg
-rwxrw-r-- 1 payam payam  15460 Aug 18 20:13 tvshow.nfo

and ls -la /media/media5/HDTV/Band\ of\ Brothers/Season\ 1/

Code:
total 22933720
drwxrwxr-x 3 payam payam       4096 Jan 10  2015 .
drwxrwxr-x 6 payam payam       4096 Aug 18 20:13 ..
drwxr-xr-x 2 payam payam       4096 Aug 18 20:13 .actors
-rwxr--r-- 1 payam payam      23988 Dec 27  2014 Band of Brothers - S01E01 - Currahee.jpg
-rw-r--r-- 1 payam payam 2348538017 Mar 16  2009 Band of Brothers - S01E01 - Currahee.mkv
-rwxr--r-- 1 payam payam       9008 Aug 18 20:13 Band of Brothers - S01E01 - Currahee.nfo
-rwxr--r-- 1 payam payam      24003 Feb 27  2013 Band of Brothers - S01E01 - Currahee.tbn
-rwxr--r-- 1 payam payam      23986 Jan 10  2015 Band of Brothers - S01E01 - Currahee-thumb.jpg
-rwxr--r-- 1 payam payam      42407 Dec 27  2014 Band of Brothers - S01E02 - Day of Days.jpg
-rw-r--r-- 1 payam payam 2347660846 Mar 16  2009 Band of Brothers - S01E02 - Day of Days.mkv
-rwxr--r-- 1 payam payam      10095 Aug 18 20:13 Band of Brothers - S01E02 - Day of Days.nfo
-rwxr--r-- 1 payam payam      35350 Feb 27  2013 Band of Brothers - S01E02 - Day of Days.tbn
-rwxr--r-- 1 payam payam      35319 Jan 10  2015 Band of Brothers - S01E02 - Day of Days-thumb.jpg
-rwxr--r-- 1 payam payam      26787 Dec 27  2014 Band of Brothers - S01E03 - Carentan.jpg
-rw-r--r-- 1 payam payam 2348324197 Mar 15  2009 Band of Brothers - S01E03 - Carentan.mkv
-rwxr--r-- 1 payam payam       8966 Aug 18 20:13 Band of Brothers - S01E03 - Carentan.nfo
-rwxr--r-- 1 payam payam      22533 Feb 27  2013 Band of Brothers - S01E03 - Carentan.tbn
-rwxr--r-- 1 payam payam      22519 Jan 10  2015 Band of Brothers - S01E03 - Carentan-thumb.jpg
-rwxr--r-- 1 payam payam      26597 Dec 27  2014 Band of Brothers - S01E04 - Replacements.jpg
-rw-r--r-- 1 payam payam 2348877457 Mar 16  2009 Band of Brothers - S01E04 - Replacements.mkv
-rwxr--r-- 1 payam payam       8553 Aug 18 20:13 Band of Brothers - S01E04 - Replacements.nfo
-rwxr--r-- 1 payam payam      22585 Feb 27  2013 Band of Brothers - S01E04 - Replacements.tbn
-rwxr--r-- 1 payam payam      22572 Jan 10  2015 Band of Brothers - S01E04 - Replacements-thumb.jpg
-rwxr--r-- 1 payam payam      31299 Dec 27  2014 Band of Brothers - S01E05 - Crossroads.jpg
-rw-rw-r-- 1 payam payam 2348298836 Mar 15  2009 Band of Brothers - S01E05 - Crossroads.mkv
-rwxr--r-- 1 payam payam       7332 Aug 18 20:13 Band of Brothers - S01E05 - Crossroads.nfo
-rwxr--r-- 1 payam payam      26292 Feb 27  2013 Band of Brothers - S01E05 - Crossroads.tbn
-rwxr--r-- 1 payam payam      26285 Jan 10  2015 Band of Brothers - S01E05 - Crossroads-thumb.jpg
-rwxr--r-- 1 payam payam      27336 Dec 27  2014 Band of Brothers - S01E06 - Bastogne.jpg
-rw-rw-r-- 1 payam payam 2348906492 Mar 15  2009 Band of Brothers - S01E06 - Bastogne.mkv
-rwxr--r-- 1 payam payam       7511 Aug 18 20:13 Band of Brothers - S01E06 - Bastogne.nfo
-rwxr--r-- 1 payam payam      22669 Feb 27  2013 Band of Brothers - S01E06 - Bastogne.tbn
-rwxr--r-- 1 payam payam      22665 Jan 10  2015 Band of Brothers - S01E06 - Bastogne-thumb.jpg
-rwxr--r-- 1 payam payam      30552 Dec 27  2014 Band of Brothers - S01E07 - The Breaking Point.jpg
-rw-rw-r-- 1 payam payam 2347145519 Mar 15  2009 Band of Brothers - S01E07 - The Breaking Point.mkv
-rwxr--r-- 1 payam payam       7311 Aug 18 20:13 Band of Brothers - S01E07 - The Breaking Point.nfo
-rwxr--r-- 1 payam payam      25551 Feb 27  2013 Band of Brothers - S01E07 - The Breaking Point.tbn
-rwxr--r-- 1 payam payam      25563 Jan 10  2015 Band of Brothers - S01E07 - The Breaking Point-thumb.jpg
-rwxr--r-- 1 payam payam      48454 Dec 27  2014 Band of Brothers - S01E08 - The Last Patrol.jpg
-rw-rw-r-- 1 payam payam 2348632595 Mar 15  2009 Band of Brothers - S01E08 - The Last Patrol.mkv
-rwxr--r-- 1 payam payam       8328 Aug 18 20:13 Band of Brothers - S01E08 - The Last Patrol.nfo
-rwxr--r-- 1 payam payam      40259 Feb 27  2013 Band of Brothers - S01E08 - The Last Patrol.tbn
-rwxr--r-- 1 payam payam      40256 Jan 10  2015 Band of Brothers - S01E08 - The Last Patrol-thumb.jpg
-rwxr--r-- 1 payam payam      35755 Dec 27  2014 Band of Brothers - S01E09 - Why We Fight.jpg
-rw-rw-r-- 1 payam payam 2348673731 Mar 14  2009 Band of Brothers - S01E09 - Why We Fight.mkv
-rwxr--r-- 1 payam payam       7155 Aug 18 20:13 Band of Brothers - S01E09 - Why We Fight.nfo
-rwxr--r-- 1 payam payam      29984 Feb 27  2013 Band of Brothers - S01E09 - Why We Fight.tbn
-rwxr--r-- 1 payam payam      29999 Jan 10  2015 Band of Brothers - S01E09 - Why We Fight-thumb.jpg
-rwxr--r-- 1 payam payam      34723 Dec 27  2014 Band of Brothers - S01E10 - Points.jpg
-rw-rw-r-- 1 payam payam 2347782455 Mar 14  2009 Band of Brothers - S01E10 - Points.mkv
-rwxr--r-- 1 payam payam      10440 Aug 18 20:13 Band of Brothers - S01E10 - Points.nfo
-rwxr--r-- 1 payam payam      29396 Feb 27  2013 Band of Brothers - S01E10 - Points.tbn
-rwxr--r-- 1 payam payam      29369 Jan 10  2015 Band of Brothers - S01E10 - Points-thumb.jpg
Proud xbmp/xbmc/kodi user since early days of 1st gen xbox

Reply
#8
(2015-08-25, 18:50)uNiversal Wrote: A full, complete, unedited, unadulterated and in a pastebin Debug Log is required for any problem. (except for passwords etc)

Its not up to who asks for help to decide what information the helper needs to see or not see in order to provide better assistance. Big Grin Within reason.

In the meanwhile you may want to add a little line to your advancedsettings.xml and see how that goes.
Code:
<advancedsettings>
<videolibrary>
    <usefasthash>true</usefasthash> <!-- defaults to true. Set to false in order to skip hashing based on the folders modification time. -->
  </videolibrary>
</advancedsettings>


sorry saw your reply after posted the debug log,
since usefasthash default is true is it needed to add it and take a debug log again ?
Proud xbmp/xbmc/kodi user since early days of 1st gen xbox

Reply
#9
Code:
<advancedsettings>
<videolibrary>
    <usefasthash>false</usefasthash> <!-- defaults to true. Set to false in order to skip hashing based on the folders modification time. -->
  </videolibrary>
</advancedsettings>
[/quote]

and the reproduce with debug log like so , enable debugging in Kodi, restart kodi, duplicate issue and pastebin the resulting log. Should be fine for pastebin like so.
Reply
#10
Same problem
log with use fast hash set to false :
kodi.log
Proud xbmp/xbmc/kodi user since early days of 1st gen xbox

Reply
#11
Well dont use path substitution for thumbnails is one issue, doesnt work properly and is not supported properly. See BIG warning at page Path_substitution (wiki)

Rest no idea.will see log after that.
Reply
#12
removed thumbnail path substitutions from all kodis in the house and its still happening.
Proud xbmp/xbmc/kodi user since early days of 1st gen xbox

Reply
#13
log
Reply
#14
sounds crazy, but turned off my ATV2 kodi and it hasnt happened since.
will test more and post if the problem occurs again.
Proud xbmp/xbmc/kodi user since early days of 1st gen xbox

Reply
#15
Doesnt sound crazy at all... You probably had two machines on the network triggering library updates at same time or fairly close to each other, hence hashes were changing and you experience that, would be my guess.
In my opinion only one box in network should act as master for triggering library updates so that the databases and content are managed in a more sane manner. But never used mysql with Kodi so wouldn't know whats best or whats ideal.

In any case dont path substitute thumbnails, bad idea with current state of affairs.
Reply

Logout Mark Read Team Forum Stats Members Help
updating video library takes long time0