+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Off-Topic (/forumdisplay.php?fid=34)
+--- Forum: Off-Topic Discussion (/forumdisplay.php?fid=113)
Pages: 1 2
- Fiasco - 2009-09-22 23:14
Or, add the crc of the thumb to the database?
- Fiasco - 2009-09-23 18:12
this what is listed on the thumbnail wiki page for generating the thumb crc/name.
C:\Movies\Singles.iso generates -43a5d0a9 (should generate 405f3ec2)
C:\Movies\Wag The Dog.iso generates -1e3e89c7 (should generate 30d882a2)
- Fiasco - 2009-09-23 20:34
OK I've gotten closer!!! It returns some values correctly! Some are not.
Any suggestions I'll gratefully accept!!
FindCRC( "C:\Movies\Wag The Dog.iso" );
returns 30d882a2 (CORRECT!)
FindCRC( "C:\Movies\The Wedding Singer.iso");
returns 4bbcf3ea (CORRECT!)
returns 405f3ec2 (CORRECT!)
FindCRC("C:\Movies\The Adventures of Ford Fairlane.iso");
returns -a2a374c (WRONG!)
returns -6ed4f2f4 (WRONG!);
- Fiasco - 2009-09-23 21:09
sooo close argghhhhh
- Fiasco - 2009-09-23 21:43
Call from j
var thumbcrc = FindCRC( "C:\Movie\Adventures Of Ford Fairlane.iso");
- kevbrown - 2009-11-19 06:39
I'm wanting to do the same thing in PHP. I want to do some tinkering with a web based library editor, but I can't for the life of me figure this out. There's a crc32 function within PHP, but that doesn't return the right value, so I wrap dechex to convert to hex, still no dice. Based on what I "think" your function is doing, I'm then performing this on the lower case string.
Also - what path does it use, the full path to the file, just the file name? How does it work with stacked items? Have you tried that?
- Fiasco - 2009-11-19 07:02
full path to the filename as in the example
- tjpoe - 2009-12-18 20:45
did you ever figure this out in PHP? i'm trying to do the same thing.
tried : crc32 ( $path . $file ).
also tried dechex( crc32( $path . $file ) )
but both were a no go.
- forumReader - 2010-03-21 02:40
Hi, very great job done.
but when i try the exambles on xbmc:wiki- Thumbnails, some get the wrong hash. I tried some from my own and 2 did not work.
123456789 returns 376e6e7
F:\Videos\Nosferatu.avi returns 2a6ec78d
smb://user:pass@server/share/directory/ returns c5559f13
smb://user:pass@server/share/directory/file.ext retutns 8ce36055
im trying to fix it but its very hard..
on smb:// devices it works fine:
smb://data:data@michi_lap/e/musik/paul kalkbrenner - berlin calling bonus/01 aaron.mp3
but on local device:
e:\musik\paul kalkbrenner - berlin calling bonus\01 aaron.mp3
it returns: c8caa9e4
but should return: 614b6c10
some other examble:
e:\\musik\\clueso - gute musik\\clueso - gute musik - 15 - vergessen ist so leicht - maskulin.mp3
should return: e09ff0ca
ore did id did something wrong?