Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Calculating the hash for a path in the database
#1
In the path table in the database, there is a hash field. How is this field calculated? I've tried using MD5, but that doesn't seem to be it.

Or, is it even required? I have a need to add new paths to the table.
Reply
#2
It's populated by the scanner based on the contents of the folder (file names, file size, file date primarily). You don't require it if you are populating it directly.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
jmarshall Wrote:It's populated by the scanner based on the contents of the folder (file names, file size, file date primarily). You don't require it if you are populating it directly.

Cheers,
Jonathan

Thanks for the quick response Jonathan. So the hash (and I assume) other fields are really only used by the scraper?
Reply
#4
Correct.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
I had to move my video files to another server, so all the paths have to change.
Rather then doing everything from scratch I would like to update the paths. Then I do need to recalculate the hash?
It looks like an MD5 hash, but what is the input string exactly?
Reply
#6
Not 100% on this, but pretty sure what happens is the first time you scan your source (for example scan for new content) Kodi will recursively open every path looking for video files and compute/store a new hash.  Subsequent scans will skip paths with matching hash.  So mainly the time required to scan the path/compute new hash the first go-round.

scott s.
.
Reply

Logout Mark Read Team Forum Stats Members Help
Calculating the hash for a path in the database0