View Single Post
Old 03-28-2012, 03:42 PM   #1
caleb68864
Member
caleb68864 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Mar 2012
Device: Pandigital Novel
Adding Ability to Read Books Online

I am trying to add some functionality to Calibre.
I would like to add the ability to read books online.
I plan on doing this by extracting an htmlz version of the book inside the book folder and opening it in the web browser.
I have created a php function that extracts the file and opens the page.
I have also created a python script that will extract the file.
However I have not figured out how to make this work with Calibre yet.
When I try running the php page I get the following errors.

http://localhost:9878/static/browse/reader.php
404 Not Found
u'browse/reader.php' not a valid resource type

http://localhost:9878/browse/reader.php
404 Not Found
The path '/browse/reader.php' was not found.

Currently I have not tried running my script in Cailbre the php file I am currently trying to run just prints Hello World

Another avenue I am looking at would be doing something similar to how files are downloaded now.
i.e. http://localhost/get/html/book.htmlz
This would open the extract the book on the server if needed then direct the user to the books index page.

I think this should be possible any help s greatly appreciated.
Thanks,

Last edited by caleb68864; 03-28-2012 at 03:59 PM.
caleb68864 is offline   Reply With Quote