2007-02-24, 03:01
Hi,
I trying to create a python script to create thumbnails but need to know how the thumbnail.tbn is created.
from reading the forums and browsing the svn source (I have no C,C++ knowledge) I gather that the hash.tbn is created from the full path name to the file.
i.e, 'F:\movies\best\myfirst.avi' (For XBOX Partition)
i.e, 'smb://Mypc/Movies/myfirst.avi' (For smb Share)
What I hope someone can help with is :
* Are the paths converted to lowercase before hashing.
* Does all of filename/path get hashed.
* Is any other data used ie filesize etc used to create the hash.
If someone could give an example of what xbmc would do to my example paths (Listed above) before creating a hash would be very usefull.
I believe that the hash is a plain crc32 hash from what I have read.
The reason I would like this is because my files move around alot from PC,XBOX, DVD and I would like to put my thumbs into a seperate folder using the filename of the avi/album etc. The app would read through my shares and ensure that a thumbnail gets copied into the thumbnails directory regardless of where the file is current system.
Any help would be appreciated and if I manage to write a script for it im sure alot of people would find it a usefull addition. Thanks..
I trying to create a python script to create thumbnails but need to know how the thumbnail.tbn is created.
from reading the forums and browsing the svn source (I have no C,C++ knowledge) I gather that the hash.tbn is created from the full path name to the file.
i.e, 'F:\movies\best\myfirst.avi' (For XBOX Partition)
i.e, 'smb://Mypc/Movies/myfirst.avi' (For smb Share)
What I hope someone can help with is :
* Are the paths converted to lowercase before hashing.
* Does all of filename/path get hashed.
* Is any other data used ie filesize etc used to create the hash.
If someone could give an example of what xbmc would do to my example paths (Listed above) before creating a hash would be very usefull.
I believe that the hash is a plain crc32 hash from what I have read.
The reason I would like this is because my files move around alot from PC,XBOX, DVD and I would like to put my thumbs into a seperate folder using the filename of the avi/album etc. The app would read through my shares and ensure that a thumbnail gets copied into the thumbnails directory regardless of where the file is current system.
Any help would be appreciated and if I manage to write a script for it im sure alot of people would find it a usefull addition. Thanks..