Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-17-2015, 09:09 AM   #16
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by Nyssa View Post
Hi, sorry its been so long since I've gotten back.

Unfortunately, this did not work for me as far as preserving X-Ray capabilities. I tried it with two separate books, even after re-downloading the originals from Amazon.

Am I missing a step?

I have the "Original File" column, and added the code under "Customize Device", then restarted Calibre and resent the books to my Kindle (after making sure the previous versions were removed).

Seeing as this is file related, I wonder if having the APNX Generator plugin is negatively affecting the code - possibly preventing it from doing what its supposed to do?

I do have both "Send Page Number Info" and "Override apnx" selected.

If the Apnx plugin is the culprit, my next question would be: Is there a way to have both X-Ray capability and Page numbers?
After doing little more than deleting and resending a few titles, I'm now getting hit or miss results. I did find out however that the APNX plugin does notseem to be a problem, as my hits have both x-ray capability and page numbers.

What I can't figure out is why there are misses (still no x-ray capabilities despite being listed as "Enabled" on Amazon).


I have one other Question with the code: Is "Original Filename" supposed to be populated when I see it in Calibre? Regardless of whether x-ray is working, it is blank on the Metadata view.
Nyssa is offline   Reply With Quote
Old 01-19-2015, 10:07 AM   #17
tilia
Evangelist
tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.
 
tilia's Avatar
 
Posts: 432
Karma: 1720909
Join Date: Mar 2011
Device: Voyage, K3
Quote:
Originally Posted by Nyssa View Post
I have one other Question with the code: Is "Original Filename" supposed to be populated when I see it in Calibre? Regardless of whether x-ray is working, it is blank on the Metadata view.
I haven't read eschwartz's thread in detail, but often input in custom columns needs to be done manually. From what I could see, I think that is the case here. Are you saying that the original filename you entered in the custom column have disappeared, or did you not enter it at all?

Last edited by tilia; 01-19-2015 at 10:11 AM.
tilia is offline   Reply With Quote
Advert
Old 01-19-2015, 10:49 AM   #18
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by tilia View Post
I haven't read eschwartz's thread in detail, but often input in custom columns needs to be done manually. From what I could see, I think that is the case here. Are you saying that the original filename you entered in the custom column have disappeared, or did you not enter it at all?
I did not enter one, and I wasn't sure if it was supposed to be auto filled by the code (like the page count is when you run the plugin).
Nyssa is offline   Reply With Quote
Old 01-19-2015, 11:04 AM   #19
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,760
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Nyssa View Post
Hi, sorry its been so long since I've gotten back.

Unfortunately, this did not work for me as far as preserving X-Ray capabilities. I tried it with two separate books, even after re-downloading the originals from Amazon.

Am I missing a step?

I have the "Original File" column, and added the code under "Customize Device", then restarted Calibre and resent the books to my Kindle (after making sure the previous versions were removed).

Seeing as this is file related, I wonder if having the APNX Generator plugin is negatively affecting the code - possibly preventing it from doing what its supposed to do?

I do have both "Send Page Number Info" and "Override apnx" selected.

If the Apnx plugin is the culprit, my next question would be: Is there a way to have both X-Ray capability and Page numbers?
You don't actually need the APNX plugin as Calibre has this functionality built-in. You can even define a custom column for page numbers.
JSWolf is offline   Reply With Quote
Old 01-19-2015, 12:01 PM   #20
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by JSWolf View Post
You don't actually need the APNX plugin as Calibre has this functionality built-in. You can even define a custom column for page numbers.
I know. I've been using it for a long while know. I had APNX installed prior to it becoming a permanent feature - I just never uninstalled it (or reinstalled it out of habit when I moved to this computer).
Nyssa is offline   Reply With Quote
Advert
Old 01-19-2015, 02:25 PM   #21
tilia
Evangelist
tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.
 
tilia's Avatar
 
Posts: 432
Karma: 1720909
Join Date: Mar 2011
Device: Voyage, K3
Quote:
Originally Posted by Nyssa View Post
I did not enter one, and I wasn't sure if it was supposed to be auto filled by the code (like the page count is when you run the plugin).
But there is no plugin in use here. The code you quoted in post 13 is what you are using, correct? This is just a save template, so that you can recreate the original filename when you send the book back to the kindle. For the template to work, you need to input the filename in the column you made.

From eschwartz's post:
Quote:
The custom column (of the default type "Text, column shown in the tag browser") is named "#file", titled "Original Filename". In it, I store the filename that the Amazon book had when I added it from my Kindle, minus the file extension. It will be in the form of {book-title}_{ASIN}
Try that on a couple of books. Send them to your kindle and check the document folder on the kindle to see if the files have the correct filename. Then check if X-ray works on them.
tilia is offline   Reply With Quote
Old 01-19-2015, 07:00 PM   #22
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by tilia View Post
But there is no plugin in use here. The code you quoted in post 13 is what you are using, correct? This is just a save template, so that you can recreate the original filename when you send the book back to the kindle. For the template to work, you need to input the filename in the column you made.

From eschwartz's post:


Try that on a couple of books. Send them to your kindle and check the document folder on the kindle to see if the files have the correct filename. Then check if X-ray works on them.
I tried a few. Adding the original file name made no difference when I looked at the first 3 on the list. Of those 3, I saw one with the correct name, and one wasn't in the Kindle's documents folder at all, even though the book is on my Kindle. I didn't even look for the 3rd.
Nyssa is offline   Reply With Quote
Old 01-20-2015, 02:48 AM   #23
tilia
Evangelist
tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.
 
tilia's Avatar
 
Posts: 432
Karma: 1720909
Join Date: Mar 2011
Device: Voyage, K3
That sounds weird. I don't understand why you got three different results, but are you sure you added the template correctly?
  • You make a custom column of the type "Text, column shown in the tag browser" with the lookup name file. The column heading can be whatever you like.
  • In this column you put the original filename as it is on the kindle when downloaded from Amazon, minus the file extension. It's different on my Kindle 3 from what eschwartz mensions, so I would download a book to the kindle from Amazon, and check exactly how it is written.
  • Connect the kindle, under the device icon you'll find configure this device. Copy in the template in the Save template box.

    Code:
    program: 
    ifempty(
    	field('#file'),
    	template(
    		'{author_sort:sublist(0,1,&)}/{title} - {authors:sublist(0,1,&)}'
    	)
    )

If this is done correctly, when you send books from calibre the filename should be like the original. (If you don't put anything in #file, the book will be put in a folder on the kindle named after the author, and the file name will be author-title.) Make sure you delete books that are already on the kindle before you resend them from calibre.

Last edited by tilia; 01-20-2015 at 02:52 AM.
tilia is offline   Reply With Quote
Old 01-20-2015, 10:49 AM   #24
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
Sorry for jumping in here, but tilia, in the post above, gives a first step that says:

"You make a custom column of the type "Text, column shown in the tag browser" with the lookup name file...."

Whereas eschwartz says:

"The custom column (of the default type "Text, column shown in the tag browser") is named "#file", titled "Original Filename"."

I'm wondering about what you named the Lookup Name when you created the custom column. Personally, I'm unclear on what should go into that Lookup Name field during the custom column creation process and wonder if the problem might be there on your end as well.
enuddleyarbl is offline   Reply With Quote
Old 01-20-2015, 10:57 AM   #25
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by DaveLessnau View Post
Sorry for jumping in here, but tilia, in the post above, gives a first step that says:

"You make a custom column of the type "Text, column shown in the tag browser" with the lookup name file...."

Whereas eschwartz says:

"The custom column (of the default type "Text, column shown in the tag browser") is named "#file", titled "Original Filename"."

I'm wondering about what you named the Lookup Name when you created the custom column. Personally, I'm unclear on what should go into that Lookup Name field during the custom column creation process and wonder if the problem might be there on your end as well.
Custom column lookup names can be any single word (no spaces): eg page_count
when you use the lookup name it will be #page_count (the # indicates a custom column name).

The Visible (label) Name does not have to match (and can have spaces).

Page Counts <= Column Label
#pc <= lookup
theducks is online now   Reply With Quote
Old 01-20-2015, 12:53 PM   #26
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
Quote:
Originally Posted by theducks View Post
Custom column lookup names can be any single word (no spaces): eg page_count
when you use the lookup name it will be #page_count (the # indicates a custom column name).

The Visible (label) Name does not have to match (and can have spaces).

Page Counts <= Column Label
#pc <= lookup
Thanks. That clears it up for me. So, since in this case eschwartz's code for the template uses "#file", then the Lookup Name needs to be "#file", too.
enuddleyarbl is offline   Reply With Quote
Old 01-20-2015, 01:32 PM   #27
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
Nyssa,

When you populated the file name for your test, what did you use? On my Kindle Paperwhite, the original file structure looks something like:

Kindle ( F: )\documents\{book_title}_{ASIN}.sdr

is the name of the folder the book is in. But, inside that, there are two .azw3 files of the format:

{book_title}_{ASIN}{cruft}.azw3* (where the cruft appears to be the uuid and the * is either a f or an r for the book I'm looking at).

I assume we don't have to specify "F:\documents". But, did you:

1) use the folder name: {book_title}_{ASIN}.sdr (minus the .sdr)
2) use the full path name to the .azw3 files inside that folder: book_title}_{ASIN}.sdr\{book_title}_{ASIN}{cruft}
3) or use just the unqualified name of one of the .azw3 files: {book_title}_{ASIN}{cruft}?

Last edited by enuddleyarbl; 01-20-2015 at 02:29 PM.
enuddleyarbl is offline   Reply With Quote
Old 01-20-2015, 02:39 PM   #28
tilia
Evangelist
tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.tilia ought to be getting tired of karma fortunes by now.
 
tilia's Avatar
 
Posts: 432
Karma: 1720909
Join Date: Mar 2011
Device: Voyage, K3
Quote:
Originally Posted by DaveLessnau View Post
Thanks. That clears it up for me. So, since in this case eschwartz's code for the template uses "#file", then the Lookup Name needs to be "#file", too.
I'm not sure you understood. The lookup name is #file, but when you make the column, you just write file in the Lookup name field. The # is added when you use the column in templates.

EDIT: I just tested in calibre. You can do both. You can write #file in the lookup field, or just file. The result is the same. Never occurred to me before to add # when making the column

Last edited by tilia; 01-20-2015 at 03:01 PM.
tilia is offline   Reply With Quote
Old 01-20-2015, 03:36 PM   #29
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by DaveLessnau View Post
Thanks. That clears it up for me. So, since in this case eschwartz's code for the template uses "#file", then the Lookup Name needs to be "#file", too.
That is correct.
Lookup name is the usage name
when you made the column, as tili pointed out, you typed file into the box
theducks is online now   Reply With Quote
Old 01-20-2015, 05:12 PM   #30
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by tilia View Post
EDIT: I just tested in calibre. You can do both. You can write #file in the lookup field, or just file. The result is the same. Never occurred to me before to add # when making the column
- For some reason I've been under the impression that when adding a column a leading '#' was forbidden in the 'Lookup name'.

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Renaming Amazon Books and X-Ray Maviellas Calibre 1 02-23-2014 01:41 AM
Amazon's Kindle app for iOS updated with X-Ray for books Jessica Lares Apple Devices 27 12-13-2012 07:52 PM
Dead Money by Ray Banks $.99 [Noir] (Amazon) [US] NightBird Deals and Resources (No Self-Promotion or Affiliate Links) 0 08-21-2012 06:06 PM
Amazon UK store - how to tell which books have X-Ray enabled? gers1978 Amazon Kindle 0 07-16-2012 04:23 PM
How useful is the 3G capability of Kindle? ovaldisk Amazon Kindle 72 08-09-2011 05:48 PM


All times are GMT -4. The time now is 03:08 PM.


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