Kodi Community Forum

Full Version: Generating Fanart Hashes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I apologise in advance if this is in the wrong section.

I am currently attempting to write some PHP code that will be interacting with the XBMC database. Ideally, I'd like to reuse the generated thumbnails for the episodes/movies. In addition, I'd also like to use the cached fanart. However, I cannot work out how to regenerate the hash value used to name the fanart. From what I can tell it does not seem to be a hash of just the filename.

Could anyone tell me what data is hashed to produce the filename used for caching fanart?
Seems to be crc32 of the full path. See xbmc/FileItem.cpp:2485.