|
|
#1 |
|
(who/what)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 545
Karma: 5338704
Join Date: Feb 2003
Device: Kindle: Voyage,PW1,KOA, Kobo: Clara Colour, Nook GLP, Pocketbook verse
|
BookSync-a web page to access Calibre Libraries on Dropbox
BookSync is a rough-and-ready solution for accessing your Calibre Libraries stored on Dropbox from the internet. It is a simple web page, accessible from any device with an internet connection and a browser. (But it probably won’t work on most eReader browsers).
BookSync will not work correctly if your Calibre Libraries contain more than 10,000 books. I am looking for beta testers. You can just go the website to use it: https://books.millmans.us/bluebooks.html If you click on a book title, you will get be a standard book details screen (Title, cover, author, and blurb) with a button to download the epub and/or azw formats, if available. I wrote BookSync because of the problems people started having with Calibre Sync when Calibre modified its database structure. I was already using a personal program that looks like this one and—except for the way in which it accesses Dropbox--works the same way. BookSync is a simple web page: it doesn’t collect any information, and it doesn’t need to be “installed” into iOS or Android to run. Although it reads files and folders in your DropBox account, it does not write to them. Book Sync is fairly robust because it scans the Calibre folder structure, not the database and it uses standard Dropbox APIs to read file and folder data. It should be fairly low-maintenance, thus reducing the risk of becoming obsolete since it doesn’t have to keep up with the changes Apple and Google keep making to their app store requirements or changes Calibre may make to its database structure and it doesn’t need to be side-loaded. In addition, the source code is available to anyone who wants to run it (with necessary changes) from their own server. It isn’t pretty—see screenshot. It takes about 2 seconds to build the list of my 3500 books. If you have a really big library, BookSync may not be for you. But it provides access from anywhere to the copy of your Calibre libraries you may have on your Dropbox account A few non-features that don’t count as bugs:
I am also looking for Beta Fixers. As mentioned, the source code is freely available (3 small files) and it can be run (with a few changes and some adjustments to the Dropbox console) on other servers. My general Javascript knowledge is middling and everything I know about authorizing Dropbox and accessing it through the API, I learned from Google Gemini for this project—some of it wrong. A lot of you can do a better job. I’m not a GitHub member, so send me a private message with an email address if you want the code (or just copy if from the Developer Tools). I would also be happy to entertain ideas for a better name and an icon.
Last edited by slm; Today at 10:14 AM. Reason: revised program to be faster. |
|
|
|
|
|
#2 |
|
(who/what)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 545
Karma: 5338704
Join Date: Feb 2003
Device: Kindle: Voyage,PW1,KOA, Kobo: Clara Colour, Nook GLP, Pocketbook verse
|
Fixed a stupid choice, now scans all 3500 books in 2 seconds!
(I've changed some of the text in the first post) |
|
|
|
|
|
#3 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,758
Karma: 245110511
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Hmm. For some reason it only shows books from one of my libraries (the largest), but not from others. And filtering seems to be very buggy - when I try to filter by the name of the author, several duplicate entries are displayed and many entries aren't displayed.
|
|
|
|
|
|
#4 |
|
(who/what)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 545
Karma: 5338704
Join Date: Feb 2003
Device: Kindle: Voyage,PW1,KOA, Kobo: Clara Colour, Nook GLP, Pocketbook verse
|
Thanks for trying this out.
I can replicate the filtering problem, but it isn't actually the filtering but the file list--for some reason, some books are "found" more than once in the search. This is "supposed" to happen, according to my very limited understanding. I'm trying to figure out why is does. As to missing your other library, a couple of questions may help: 1. how may books are in each library? 2. Can you open the folder for one of the books in the library that was missed and check that that folder does in fact contain a file whose name is "metadata.opf" (I can't imaging why it wouldn't but that is what the program searches for). 3. Finally, what OS are you on and what Browser? (Neither of these should matter, but it might be a place to start) |
|
|
|
|
|
#5 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,758
Karma: 245110511
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
You mean metadata.db, I think? Yes, they all have it. And all the books have metadata.opf files as well.
The largest is over 35 000 books and alphabetically the first one. The other two (that the app couldn't find) are about 5000 and 3000. And the issue with filtering is not only duplicates, it's also that many books for the filtered author(s) aren't shown at all. I think the app may have problems with huge libraries - maybe it's unable to process such a number of books and that's the reason for both missing libraries and missing books. I'm on Windows 11, the browser is Thorium (a Chromium fork. It's the only one where I'm logged in to Dropbox). |
|
|
|
|
|
#6 |
|
(who/what)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 545
Karma: 5338704
Join Date: Feb 2003
Device: Kindle: Voyage,PW1,KOA, Kobo: Clara Colour, Nook GLP, Pocketbook verse
|
Actually, I really did mean "metadata.opf". Each library has a metadata.db file but each book has a metadata.opf file. (the "opf" file contains information, or references to the information that Calibre uses for the book. Calibre uses this to rebuild the database if it gets corrupted.)
|
|
|
|
|
|
#7 |
|
(who/what)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 545
Karma: 5338704
Join Date: Feb 2003
Device: Kindle: Voyage,PW1,KOA, Kobo: Clara Colour, Nook GLP, Pocketbook verse
|
By the way, how long does it take to search 35,000 books?
|
|
|
|
|
|
#8 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,758
Karma: 245110511
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
|
|
|
|
|
#9 |
|
(who/what)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 545
Karma: 5338704
Join Date: Feb 2003
Device: Kindle: Voyage,PW1,KOA, Kobo: Clara Colour, Nook GLP, Pocketbook verse
|
Your guess turns out to be correct: I verified it empircally and then did a search of the documentation, which does state this limit.
I've modified the initial post to warn that the program does not work correctly with large libraries. I've actually found the recommended approach for larger searches but (because I tried using this technique at one point), I think it will be too slow to be reasonable for large libraries. I'm going to play with it a bit more to be sure. Thank you very much for your help. |
|
|
|
|
|
#10 |
|
(who/what)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 545
Karma: 5338704
Join Date: Feb 2003
Device: Kindle: Voyage,PW1,KOA, Kobo: Clara Colour, Nook GLP, Pocketbook verse
|
@sirtel: The duplicated files issue has been solved. Not that it will do you can good, of course, since the 10,000 books limit is still present.
|
|
|
|
|
|
#11 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,758
Karma: 245110511
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Thanks.
It's a pity there's no option to select a library. I'd give it a go at one of my smaller ones. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cannot access Calibre-Web via Kobo web browser | chakattack | Server | 14 | 08-19-2018 08:51 PM |
| Calibre web access problem | EvilWayz | Calibre | 0 | 07-13-2014 01:18 PM |
| Multiple Libraries and Web Access | wernercd | Library Management | 2 | 04-04-2014 06:59 PM |
| Can't get access to the web browser through calibre | rethec | Calibre | 3 | 07-25-2013 04:25 AM |
| Calibre & web access | Nate the great | Calibre | 4 | 03-03-2009 09:14 PM |