PDA

View Full Version : Generating Fanart Hashes


BigYesh
2008-12-11, 02:03
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?

althekiller
2008-12-11, 03:09
Seems to be crc32 of the full path. See xbmc/FileItem.cpp:2485.