correlate movie to thumbnail
#16
Fiasco Wrote:I tried out your tool.

I tried xbmccrc.exe "C:\Movies\Singles.iso" which returned 1079983810 (the tbn file name for the thumb for singles is 405F3EC2)

Am I doing something wrong?

xbmccrc.exe -validate says that
F:\Videos\Nosferatu.avi should return 2a6ec78d
but typing in
xbmccrc.exe "F:\Videos\Nosferatu.avi" returns two values 2410786963 and 711903117
woops, was returning dec value and not hex, i'll fix and upload.. done ver 1.0.0.1
http://mediainfoplus.com/mipupdate/downl...bmccrc.zip (same location and name)

ok fixed and also changed it so that it won't return the value for the exe part of the command

it's setup so you can pass multiple values to it as well
xbmccrc.exe "F:\Videos\Nosferatu.avi" "F:\Videos\Nosferatu.avi" "F:\Videos\Nosferatu.avi" "F:\Videos\Nosferatu.avi"
Reply
#17
I figured that out.

Here is my javascript function which is returning the wrong value.

Code:
function findCRC( string ) {
            var CRC = 0xffffffff;
            for ( var j = 0; j < string.length; j++ ) {
                var c = string.charCodeAt(j);
                CRC ^= c << 24;
                for (var i = 0; i < 8; i++) {
                    if ( CRC & 0x800000000 )
                      CRC = (CRC <<  1) ^ 0x04C11DB7;
                    else
                      CRC <<=1;
                }
             }
             return CRC.toString(16);
}

Help!
Reply
#18
Thread on the subject here http://forum.xbmc.org/showthread.php?tid=58389

I almost have it. Some movies return the correct value, some don't.
Reply
#19
solved

http://forum.xbmc.org/showthread.php?tid=58389
Reply

Logout Mark Read Team Forum Stats Members Help
correlate movie to thumbnail0