View Single Post
Old 01-03-2010, 11:03 AM   #1
hakan42
Zealot
hakan42 is on a distinguished road
 
hakan42's Avatar
 
Posts: 136
Karma: 60
Join Date: Jul 2009
Location: Munich, Germany
Device: Nook Classic rooted; Galaxy S IV with Aldiko, other older devices
Adding ODPS client to calibre (Bug #1665, Download from Bookshelf/Stanza servers)

Hi,


I need to fetch epub's from multiple online shops on a weekly basis.

After hacking around for a short while on a perl client, I decided to give bug #1665 a try and integrate an odps client into calibre itself.

The way I envision it, the code would check the remote sites, comparing the uuid's from the stanza feed URLs, and fetch the remote book if not found in the local database.

Kovid: Would something break if I prefix the uuid column in the database with the shop name? e.g. "webscription:ef2b09d6-3ebe-4bcb-9e4d-596617edbdf1" instead of "ef2b09d6-3ebe-4bcb-9e4d-596617edbdf1" alone if the book is fetched from webscription.net ?

There are quite a few things to work out (e.g. where to store the per-shop authentication details, the URL's to check, and so on) so it might take a few weeks until something useful comes from this thread...


Regards,
Hakan
hakan42 is offline   Reply With Quote