Calculating the hash for a path in the database - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: Calculating the hash for a path in the database (/showthread.php?tid=74098) |
Calculating the hash for a path in the database - bmillham - 2010-05-18 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. - jmarshall - 2010-05-18 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 - bmillham - 2010-05-18 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. Thanks for the quick response Jonathan. So the hash (and I assume) other fields are really only used by the scraper? - jmarshall - 2010-05-18 Correct. RE: Calculating the hash for a path in the database - Ansula - 2024-08-11 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? RE: Calculating the hash for a path in the database - scott967 - 2024-08-12 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. . |