Mobileread
new book found by CC, but not in Calibre
#1  Purple Lady 02-16-2014, 06:50 PM
I added a new book to the CC folder on my Nexus 7 LTE and when I connected wirelessly to Calibre I saw the message that a new book was found and it was uploading to Calibre. Calibre 1.24 does not have the book. I added another book and verified that the number of books in my Calibre library did not change. I don't use virtual libraries.

Here's the log from CC
Spoiler Warning below






2014-02-16 18:40:34.995: Log flush
2014-02-16 18:40:35.000: creating book failed to get user_metadata
org.json.JSONException: No value for user_metadata
at org.json.JSONObject.get(JSONObject.java:354)
at org.json.JSONObject.getJSONObject(JSONObject.java: 573)
at com.multipie.calibreandroid.LocalData.a.b.j(Source :53)
at com.multipie.calibreandroid.LocalData.a.n.c(Source :934)
at com.multipie.calibreandroid.LocalData.a.n.a(Source :1074)
at com.multipie.calibreandroid.LocalData.a.n.e(Source :1030)
at com.multipie.calibreandroid.LocalData.a.n.a(Source :700)
at com.multipie.calibreandroid.b.a.j.a(Source:141)
at com.multipie.calibreandroid.b.a.b(Source:191)
at com.multipie.calibreandroid.b.a.run(Source:155)
2014-02-16 18:40:35.003: Log flush
2014-02-16 18:40:35.037: Command GetBooks: finished
2014-02-16 18:40:37.671: calibre sent command SEND_BOOKLISTS
2014-02-16 18:40:37.832: calibre sent command FREE_SPACE
2014-02-16 18:40:37.857: ApplyDisplaySettings: setting=0, stack depth=1
2014-02-16 18:40:37.878: positionBooklist: first visible=-1, offset=0
2014-02-16 18:40:38.036: onPrepareOptionsMenu
2014-02-16 18:40:38.038: setGroupingEnabled isEnabled=true
2014-02-16 18:40:38.058: calibre sent command NO_OP
2014-02-16 18:40:40.384: calibre sent command NO_OP
2014-02-16 18:40:42.287: Trying to disconnect.
2014-02-16 18:40:42.289: Error reading RPC
java.net.SocketException: Socket closed
at libcore.io.Posix.recvfromBytes(Native Method)
at libcore.io.Posix.recvfrom(Posix.java:140)
at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java :164)
at libcore.io.IoBridge.recvfrom(IoBridge.java:506)
at java.net.PlainSocketImpl.read(PlainSocketImpl.java :488)
at java.net.PlainSocketImpl.access$000(PlainSocketImp l.java:46)
at java.net.PlainSocketImpl$PlainSocketInputStream.re ad(PlainSocketImpl.java:240)
at com.multipie.calibreandroid.b.p.c(Source:51)
at com.multipie.calibreandroid.b.a.run(Source:153)
2014-02-16 18:40:42.292: Log flush
2014-02-16 18:40:42.300: Communicator NPE in run loop: This should ONLY happen if the user closed the connection.
java.lang.NullPointerException
at org.json.JSONTokener.nextCleanInternal(JSONTokener .java:116)
at org.json.JSONTokener.nextValue(JSONTokener.java:94 )
at org.json.JSONArray.<init>(JSONArray.java:87)
at org.json.JSONArray.<init>(JSONArray.java:103)
at com.multipie.calibreandroid.b.a.b(Source:183)
at com.multipie.calibreandroid.b.a.run(Source:155)
2014-02-16 18:40:42.302: Log flush
2014-02-16 18:40:42.303: onPrepareOptionsMenu
2014-02-16 18:40:42.303: setGroupingEnabled isEnabled=true
2014-02-16 18:40:42.319: onPrepareOptionsMenu
2014-02-16 18:40:42.320: setGroupingEnabled isEnabled=true
2014-02-16 18:40:44.909: onPause
2014-02-16 18:40:45.256: onSaveInstanceState
2014-02-16 18:40:45.257: BaseActivity onStop
Reply 

#2  chaley 02-17-2014, 02:53 AM
This is a case of a bad message from CC. Assuming that the book is not an epub, it is indeed uploaded to calibre but only for metadata analysis. It is not automatically added to calibre's library because neither CC nor calibre know whether it is already there, perhaps with a different title or author.

You must resolve this question manually. In calibre's device view, find the new book, right click, then select either add book to library or match book to library.

I will change that CC message to (I hope) reduce the confusion.
Reply 

#3  Purple Lady 02-17-2014, 12:47 PM
Quote chaley
This is a case of a bad message from CC.
I've never had a book on my tablet that didn't come from Calibre and I figured I was missing something, so I checked the sticky but it really didn't say much about what should happen.

Quote
I have books on my device that don’t show up in calibre. How do I fix this?

--------------------------------------------------------------------------------

You can ask Calibre Companion to scan the folders where it puts books. Click on the menu button, select settings, then "Scan for books on connect" to check the box. The next time you connect, CC will do the scan.

Calibre Companion does not look in folders other than the ones for formats/extensions selected in its "Book formats and folders" dialog. CC also looks only for the formats that it is willing to put in that folder. For example, If mobi and epub files are going into two different folders, CC will not scan for .mobi files in the epub folder and vice versa. If you are in this situation then you should either combine the folders or move the books to the right folder.
Quote chaley
Assuming that the book is not an epub, it is indeed uploaded to calibre but only for metadata analysis. It is not automatically added to calibre's library because neither CC nor calibre know whether it is already there, perhaps with a different title or author.

You must resolve this question manually. In calibre's device view, find the new book, right click, then select either add book to library or match book to library.
The book was an epub. Does that mean something else should have happened?

Quote chaley
I will change that CC message to (I hope) reduce the confusion.
If only this would reduce all my confusion. Including non Calibre stuff of course.
Reply 

#4  chaley 02-17-2014, 01:02 PM
Thanks much for pointing out that the FAQ answer wasn't right. I have changed it. If you can spare a moment, let me know if you think it is better now.

As for the book being an epub, the difference is that CC can extract the metadata from epubs and send the metadata to calibre instead of sending the entire book. This makes the process significantly faster and more accurate. It doesn't change whether or not a book is automatically added to calibre.
Reply 

#5  Purple Lady 02-17-2014, 01:50 PM
Quote chaley
Thanks much for pointing out that the FAQ answer wasn't right. I have changed it. If you can spare a moment, let me know if you think it is better now.

As for the book being an epub, the difference is that CC can extract the metadata from epubs and send the metadata to calibre instead of sending the entire book. This makes the process significantly faster and more accurate. It doesn't change whether or not a book is automatically added to calibre.
The FAQ is much more clear now.
Reply 

Today's Posts | Search this Thread | Login | Register