Getting your non-Kindle Store books to work with Whispersync p.2

So you were able to get your e-books to sync over Whispersync, but when you use it on your Android device or iPhone/iPod Touch, it downloads random cover art because you gave Amazon a fake ASIN number to search for...

Well, I have the solution:

For the *nix script, just put

mobi2mobi --savecover "cover_$asin1$rand2$rand1.png" "$f"> /dev/null 2>&1
between
mobi2mobi --outfile "$f" --exthtype 113 --exthdata $asin1$rand2$rand1 "$f"> /dev/null 2>&1
echo "Gave a fake ASIN number to: $title. It's new number is $asin1$rand2$rand1"


and for the Windows version, put
C:\Users\m0ngr31\desktop\kindle\mobi2mobi.exe --savecover "cover_!asin1!!asin3!!temp1!.png" "%%b">null 2>&1
between
C:\Users\m0ngr31\desktop\kindle\mobi2mobi.exe --outfile "%%b" --exthtype 113 --exthdata "!asin1!!asin3!!temp1!" "%%b">null 2>&1
echo Gave a fake ASIN number to: !title1!. It's new number is !asin1!!asin3!!temp1!


All thanks go to the programmer who wrote MobiPerl, tompe over at the MobileRead.com forums for making this all possible.
© 2010 Joe Ipson. Drupal theme by Kiwi Themes.