![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 e.g. c:\temp vs c:\temp\index.html |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,160
Karma: 27110894
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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 208
Karma: 1523
Join Date: Jul 2007
Location: Houston,TX
Device: PRS-T1
|
Ok, thanks, I'll see if I can use that.
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |