View Single Post
Old 11-19-2008, 12:15 PM   #1
beowulf573
Addict
beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.beowulf573 once ate a cherry pie in a record 7 seconds.
 
beowulf573's Avatar
 
Posts: 208
Karma: 1523
Join Date: Jul 2007
Location: Houston,TX
Device: PRS-T1
chaining web2disk to html2lrf

I'm working on rewriting the Bookit backend and am stuck on how to chain html2lrf (or html2epub) to web2disk.

web2disk takes and output directory as a parameter, but html2lrf requires a specific file to convert. The main output file from web2disk is derived from the url, so it's difficult for me to predict what it will be.

I can submit a patch to web2disk to specify a file name for the primary downloaded file unless you have a better suggestion.

The result would be something like:

Code:
web2disk -d c:\temp\ -o index.html http://www.example.com
html2lrf c:\temp\index.html
I could also modifiy the directory to parameter to use a filename if specified otherwise derive it.

e.g. c:\temp vs c:\temp\index.html
beowulf573 is offline   Reply With Quote