View Full Version : Automatic .Lit extractor for the iLiad
Adam B. 10-05-2007, 04:14 PM I'm attaching my port of convertlit for the iLiad along with a registry installer and extraction script.
To install, unzip, copy to your iLiad, run, and reboot. Then delete the installation folder.
Now, copy a drm-free .lit file to your iLiad. Then select it from the contentlister.
Here's what will happen.
Your iLiad will extract the .lit file in the same folder the .lit is located
It will automatically display the Author's Name, Book Title, and Cover Art from the .lit file in the contentlister.
After it has extracted, you will need to open the oeb file in FBReader (You can open it from the contentlister with the FBReader Registry installer (http:/http://www.mobileread.com/forums/showthread.php?t=14516))
After you verify it works, you can delete the lit file.
Post updated to support spaces in path and file names. Thanks ender and Tesa!
Editor's Note: The attached tool cannot be used to break DRM'ed lit files. We at MobileRead do not condone the use of tools to bypass DRM, and will not permit any discussion helping others to do so. The attached is posted in the interest of compatibility and bringing more available formats to the iLiad.
nekokami 10-06-2007, 09:19 PM Brilliant! :D
(If only I'd seen this before I started the massive effort to get all my LIT files converted... right about the time you posted this.)
DeGodefroi 10-07-2007, 03:46 PM Make sure the .Lit file does not have any spaces of special characters.
What do you mean?
wallcraft 10-07-2007, 04:18 PM Make sure the filename does not have any spaces or special characters.
It is difficult to make Linux scripts work cleanly with MS Windows filenames (with spaces and special characters). The typical Linux filename is alphanumeric plus underscore, dot and dash. See Basic Linux Operations FAQ - Filenames (http://linux.about.com/od/linux101/l/blnewbie3_1_1.htm).
nekokami 10-07-2007, 09:30 PM Weird... did we lose some posts from this thread? Anyway, I'll check the filenames. That could be it. I have a script that could go through and rename all the files, inserting underscores as needed. Will I need to worry about commas in the directory names above the file, do you think?
wallcraft 10-07-2007, 09:51 PM Will I need to worry about commas in the directory names above the file, do you think? I think commas are probably ok, but it is easy to check. If the case with a comma fails, copy the same .lit file to a directory name without a comma and see if it works.
nekokami 10-08-2007, 10:34 AM Now that I think about it, commas and periods are legal in unix file names, so there shouldn't be a problem. I just need to get rid of the spaces....
DeGodefroi 10-13-2007, 01:04 PM Hmmm I installed the file, and it said reboot the iliad. OK done.
I then clicked on a .lit file renamed in 1 word to avoid spaces or weird chars.
The Iliad green lamp blinks a bit and then nothing happens.
The content lister shows the .lit file as a known type, so it should be working!
So...has anybody else any success?
Adam B. 10-13-2007, 07:24 PM Is the file copy protected?
DeGodefroi 10-15-2007, 05:01 AM It is drm free sofar I know. where can I find a for sure non protected lit to verify it?
Adam B. 10-15-2007, 05:03 AM http://www.mslit.com/default.asp?mjr=FRE
I used "War of the Worlds" and "The Time Machine" on this page for testing.
JSWolf 10-15-2007, 05:42 AM Another good source for free unprotected MS Reader (LIT) files is the Baen Free Library (http://www.baen.com/library/defaultTitles.htm).
I had exactly the same symptoms/behaviour as DeGodefroi.The .lit files I ve tried are DRM free. (One was created by me actually for test purposes.)
Led blinks, content lister shows the .lit file as a known type but nothing else.
Adam B. 10-15-2007, 04:39 PM Can you post the file(s) you are having problems with?
ender` 10-16-2007, 04:23 PM Now that I think about it, commas and periods are legal in unix file names, so there shouldn't be a problem. I just need to get rid of the spaces....Actually, the only diallowed characters in Unix filenames are / and nul (0x00). It's just that you need to quote the variables if you expect them to contain spaces. Anyway, here's a fix for the convertlit script that makes it work with spaces in file (and directory) names.
Adam B. 10-16-2007, 04:37 PM Actually, the only diallowed characters in Unix filenames are / and nul (0x00). It's just that you need to quote the variables if you expect them to contain spaces. Anyway, here's a fix for the convertlit script that makes it work with spaces in file (and directory) names.
Thank you!
My scripting skills aren't quite that advanced yet. I'll do some testing tomorrow and update the first post. :2thumbsup
Thanks a bunch guys it seems it was the spaces in the directory name (filename was OK). I 've tried the old script after renaming the dir and worked like a charm.
I will give the new script a go (Cheers ender :-) )
The new script works just fine.
With your permission guys I am attaching the convertlit.zip file where I have replaced the original script with the one provided by ender.
Adam, Ender thanks again.
DeGodefroi 10-19-2007, 11:49 AM Yes, it works now! It was in the directory clive cussler, so the space in the directory killed the script.
Now, I accidentally clicked on the .lit again, and it extracted again, doubled the dir size. Maybe a good idea to have the script check if the extracted files already exist? :-)
Thanks and great util!
I have installed the new script and my Iliad don`t start. What can I do?. I`m afraid my Iliad is k.o.
thanks
Adam B. 10-29-2007, 05:13 PM What happens when you try to start your iLiad?
You can see the photos, It start like always, but then it stoped (all screen dark except the comand line) and the led is flashing . Only can reset it.6911
6912
6913
Adam B. 10-29-2007, 06:09 PM That's odd. I can't imagine why the contentlister isn't starting.
You have firmware 2.11 correct? You should be able to reflash it yourself with a compact flash card.
Yes 2.11 and I have a compact flash I donīt know reflashing. Can you help me ? .Thanks
tribble 10-30-2007, 01:34 AM get the reflash image from here: https://myirex.irexnet.com/user.php/attachments
Then unpack the ZIP file to your flash card (it needs to be fat32 formatted)
Then hold down the connect button (round button) while you are switching on the iLiad and keep it pressed for quite some time.
The iLiad should then boot from the CF card and reflash the device.
Adam B. 10-30-2007, 08:32 AM You can find detailed instructions here: http://developer.irexnet.com/dev_files/Reflash from CF howto_0.pdf
Only half solution. I have reflashed my Iliad and then I recovery but is v2.10.Well when I try to update I have the problem again. I think that there is some program that run in the boot sequence and it look the version if this is 2.11 and then...
After reflash I donīt have shell access.
Any sugesstions?
Maybe I must wait v2.12
Many thanks
Adam B. 10-30-2007, 07:20 PM Only half solution. I have reflashed my Iliad and then I recovery but is v2.10.Well when I try to update I have the problem again. I think that there is some program that run in the boot sequence and it look the version if this is 2.11 and then...
After reflash I donīt have shell access.
Any sugesstions?
Maybe I must wait v2.12
Many thanks
When you do the recovery, backup all of your document that are on the internal memory, and use the "format" option in the config.txt. It could be corruption on the internal file system. A format may solve it.
Thanks a lot Adam and Tribble, at last all itīs o.k.:crowngrin
Alcuith 03-01-2008, 11:37 PM With 2.12 I get mismatch of firmware message. Will there be an update of convertlit soon?
Only half solution. I have reflashed my Iliad and then I recovery but is v2.10.Well when I try to update I have the problem again. I think that there is some program that run in the boot sequence and it look the version if this is 2.11 and then...
After reflash I donīt have shell access.
Any sugesstions?
Maybe I must wait v2.12
Many thanks
wallcraft 03-02-2008, 08:06 AM With 2.12 I get mismatch of firmware message. Will there be an update of convertlit soon? All you need to do is edit the file Firmware_Script to contain 2.12, see iRex iLiad Firmware 2.12 released (http://www.mobileread.com/forums/showpost.php?p=146846&postcount=8).
Alcuith 03-03-2008, 11:55 PM Thanks mate, I did do that which got it running. When I try to open the .lit file it converts on the Iliad, but only seems to convert one page (the cover) and the rest cannot be read.
Anybody else having this issue?
All you need to do is edit the file Firmware_Script to contain 2.12, see iRex iLiad Firmware 2.12 released (http://www.mobileread.com/forums/showpost.php?p=146846&postcount=8).
wallcraft 03-04-2008, 08:58 AM OEB books are read by FBReader. Do you have either integrated FBReader 0.8.14 with ePub and Registry Support (http://www.mobileread.com/forums/showthread.php?t=20490) or FBReader 0.8.4 (http://www.mobileread.com/forums/showthread.php?t=11344) and FBReader Registry installer for 2.11 (http://www.mobileread.com/forums/showthread.php?t=14516) installed?
I explode LIT books to OEB on a Windows PC, then zip all the files together and rename this .oebzip. FBReader recognizes such files as OEB books and automatically opens on the .opf file. However, I don't think the iLiad registry setup includes .oebzip - I use FBReader 0.8.4's built in file and library manager.
Alcuith 03-15-2008, 09:20 PM When you do the recovery, backup all of your document that are on the internal memory, and use the "format" option in the config.txt. It could be corruption on the internal file system. A format may solve it.
I think this may be related to the permanent reboot in other thread.
Could you post up a config.txt file that would use the format option?
I have read the ReflashfromCFHowto.pdf doc - not quite sure of the formatting by line.
|