View Single Post
Old 08-16-2007, 09:19 PM   #67
ZeBuddha
MonkeyWrench
ZeBuddha began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Aug 2007
Device: SE K800i & PSP - looking at PRS500 :D
At the risk of asking a stupid question again, is there any way to batch-convert files? I've tried using wildcards (eg. lit2lrf X:\SomeDir\*.lit or lit2lrf *.lit) but it doesn't work.

-----------------

Actually, I'm not even able to convert a single file in the same directory as libprs500 (renamed the .lit in the example below to remove spaces, etc.):

C:\Program Files\libprs500>lit2lrf Blah.lit
+---[ ConvertLIT (Version 1.8) ]---------------[ Copyright (c) 2002,2003 ]---
ConvertLIT comes with ABSOLUTELY NO WARRANTY; for details
see the COPYING file or visit "http://www.gnu.org/license/gpl.html".
This is free software, and you are welcome to redistribute it under
certain conditions. See the GPL license for details.
LIT INFORMATION.........
DRM = 1
Timestamp = 2d04461c
Creator = 00000026
Language = 00000809
Writing out "Something_or_other" as "Something or other.htm" ...

Traceback (most recent call last):
File "convert_from.py", line 83, in <module>
File "convert_from.py", line 54, in main
File "convert_from.py", line 42, in generate_html
libprs500.ebooks.ConversionError:
WARNING: Read went past the end of file by 121057 bytes.
If the conversion process doesn't work, try to redownload the file.
Error reading file "C:\Program Files\libprs500\Blah.lit" --
LZXdecompress failed, status = 3.


EDIT: Tested w/ PDF file, following result after trying to convert:

C:\Program Files\libprs500>pdf2lrf blah2.pdf
Processing libprs500_0.3.95_zgqjkc.html
Parsing HTML...
Converting to BBeB...
Traceback (most recent call last):
File "convert_from.py", line 82, in <module>
File "convert_from.py", line 78, in main
File "libprs500\ebooks\lrf\html\convert_from.pyo", line 1365, in process_file
File "libprs500\ebooks\lrf\html\convert_from.pyo", line 414, in __init__
File "libprs500\ebooks\lrf\html\convert_from.pyo", line 511, in parse_file
libprs500.ebooks.ConversionError: libprs500_0.3.95_zgqjkc.html does not seem to
have any content

Last edited by ZeBuddha; 08-16-2007 at 09:24 PM.
ZeBuddha is offline   Reply With Quote