Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
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
Old 11-19-2008, 12:18 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
An alternative would be to simply use the file in the directory that has the oldest (or newest, you'll have to check) creation time (assuming the directory was empty to start with).

In fact, IIRC web2disk creates only a single file in the top level directory.

Last edited by kovidgoyal; 11-19-2008 at 04:20 PM.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-19-2008, 04:48 PM   #3
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
Ok, thanks, I'll see if I can use that.
beowulf573 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
web2disk - howto? urbane_gorilla Calibre 3 03-29-2010 04:48 AM
website crashes ebook-convert after web2disk eksor Calibre 1 03-11-2010 06:58 AM
web2disk kovidgoyal Sony Reader 6 02-28-2009 01:49 PM
html2lrf vs rtf2lrf paspas Sony Reader 0 11-18-2007 02:35 PM
PRS-500 HTML2LRF igorsk Sony Reader Dev Corner 68 09-02-2007 12:15 PM


All times are GMT -4. The time now is 09:09 AM.


MobileRead.com is a privately owned, operated and funded community.