Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 11-27-2014, 03:09 AM   #1
geometer
Member
geometer began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2005
Location: Cambridge, UK
Device: Sharp Zaurus SL-C3100
Calibre + cloud eBook storage plugin

Hello,

I would like to write a plugin for connecting Calibre to FBReader Book Network catalog (https://books.fbreader.org/). I wrote a trivial plugin that opens the catalog as a web page in a separate window, asks for google authentication and then allows to download books directly to Calibre library. (http://sources.fbreader.org/fbreader...alibre-plugin/)

I need some help to implement more interesting features:
  1. That would be nice to store cookies between sessions; then it will be not necessary to enter google credentials every time user wants to connect.
  2. It would be also useful to use these cookies during OPDS search over the catalog; this search is only accessible for authorised users.
  3. Finally, the most interesting feature is an upload of books from the Calibre library to the Book Network.
So, my questions are: is it possible to implement these features in a plugin? If yes, is there a good point to start: some documentation, or code sample, or just classes in the Calibre source I can read?

Thank you in advance,

-- Nikolay
geometer is offline   Reply With Quote
Old 11-27-2014, 03:35 AM   #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: 45,300
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I'm not sure what you're asking for.

1. If you want to know how to extract cookies from a QtWebKit browser, see the Browser/NetworkAccessManager classes in jsbrower/browser.py

2. If you want to know how to use these cookies with mechanize, see the get_browser() method in feeds/news.py

3. You should probably be asking this on a FBreader forum, since how you do it will depend on what APIs it exposes.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-27-2014, 04:14 AM   #3
geometer
Member
geometer began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2005
Location: Cambridge, UK
Device: Sharp Zaurus SL-C3100
Quote:
Originally Posted by kovidgoyal View Post
I'm not sure what you're asking for.

1. If you want to know how to extract cookies from a QtWebKit browser, see the Browser/NetworkAccessManager classes in jsbrower/browser.py

2. If you want to know how to use these cookies with mechanize, see the get_browser() method in feeds/news.py
Thank you! I will take a look.

Quote:
3. You should probably be asking this on a FBreader forum, since how you do it will depend on what APIs it exposes.
There is no problem with FBReader API because I'm author of FBReader. The question are:
  • Calibre has a standard mechanism to download books from third-party sources (Get books->Stores). Is there a standard mechanism to upload books onto an external (cloud) storage?
  • Is it possible to run plugin on whole Calibre library (some interface to access the library from a plugin), to upload all the books to the book network?
geometer is offline   Reply With Quote
Old 11-27-2014, 05:16 AM   #4
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: 45,300
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can create a User Interface plugin, those plugins have full access to the entire library and can do anything they like. See for example the Marvin XD plugin that connects calibre to Marvin on an iOS device and allows sending books to the device from the calibre library.
kovidgoyal is offline   Reply With Quote
Old 11-27-2014, 04:04 PM   #5
geometer
Member
geometer began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2005
Location: Cambridge, UK
Device: Sharp Zaurus SL-C3100
Quote:
Originally Posted by kovidgoyal View Post
You can create a User Interface plugin, those plugins have full access to the entire library and can do anything they like. See for example the Marvin XD plugin that connects calibre to Marvin on an iOS device and allows sending books to the device from the calibre library.
I see. Thank you very much!
geometer is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Amazon folds Kindle cloud storage into cloud drive fjtorres News 4 04-17-2014 04:50 AM
Cloud Storage For Kindle Books and Calibre jscarbo Library Management 3 12-10-2013 06:41 AM
Calibre Library Cloud Storage Review: Copy.com DoctorOhh Related Tools 5 07-13-2013 05:20 PM
Calibre Portable and Cloud Storage library.ian Related Tools 3 01-14-2013 08:02 PM
iPhone Two new iPhone Storage Solutions: Zoomit (SD Card Reader) & Boxnet (Cloud Storage) kjk Apple Devices 0 02-09-2010 06:20 PM


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


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