Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-26-2015, 03:10 PM   #16
Purple Lady
Grand Sorcerer
Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.
 
Purple Lady's Avatar
 
Posts: 5,698
Karma: 16542228
Join Date: Feb 2010
Location: Pennsylvania
Device: Huawei MediaPad M5, LG V30, Boyue T80S, Nexus 7 LTE, K3 3G, Fire HD8
Quote:
Originally Posted by chaley View Post
It works fine for me. Are you sure that #genre is the type you said? For example, it won't work if it is a column built from other columns.
Fixed.
I figured that if the user wanted to save it then perhaps s/he was going to come back later. I didn't want to create a situation where one *must* finish in order to go have dinner.
Could you send me the metadata_db_prefs_backup.json from your library? That will tell me the exact column configuration.
Here's a screenprint of the column while I look for metadata_db_prefs_backup.json

Click image for larger version

Name:	genre.png
Views:	214
Size:	12.1 KB
ID:	139689

Edit: metadata_db_prefs_backup.json sent

Last edited by Purple Lady; 06-26-2015 at 03:17 PM.
Purple Lady is offline   Reply With Quote
Old 06-26-2015, 04:00 PM   #17
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,461
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
@Purple Lady: could you be using more than one library? I ask because in the screen capture you showed in post 14 there isn't any Genre data. Or is this a book in the database that doesn't have any Genre information attached?
chaley is offline   Reply With Quote
Old 06-26-2015, 04:49 PM   #18
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,461
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
@Purple Lady: I can confirm that there is is (was) a problem with custom columns used in templates where the custom column was empty. The release alpha version assumes that a missing value is an invalid value. The next release will check if the column is defined but otherwise empty and if so will return an empty value.
chaley is offline   Reply With Quote
Old 06-26-2015, 05:06 PM   #19
Purple Lady
Grand Sorcerer
Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.
 
Purple Lady's Avatar
 
Posts: 5,698
Karma: 16542228
Join Date: Feb 2010
Location: Pennsylvania
Device: Huawei MediaPad M5, LG V30, Boyue T80S, Nexus 7 LTE, K3 3G, Fire HD8
Quote:
Originally Posted by chaley View Post
@Purple Lady: could you be using more than one library? I ask because in the screen capture you showed in post 14 there isn't any Genre data. Or is this a book in the database that doesn't have any Genre information attached?




Quote:
Originally Posted by chaley View Post
@Purple Lady: I can confirm that there is is (was) a problem with custom columns used in templates where the custom column was empty. The release alpha version assumes that a missing value is an invalid value. The next release will check if the column is defined but otherwise empty and if so will return an empty value.
I don't use Genre with my News items.
Purple Lady is offline   Reply With Quote
Old 06-28-2015, 03:23 PM   #20
Purple Lady
Grand Sorcerer
Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.
 
Purple Lady's Avatar
 
Posts: 5,698
Karma: 16542228
Join Date: Feb 2010
Location: Pennsylvania
Device: Huawei MediaPad M5, LG V30, Boyue T80S, Nexus 7 LTE, K3 3G, Fire HD8
I'm getting an underscore at the end of my filename.

Edit: See next post for better screenshot
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1435519450151.png
Views:	207
Size:	447.7 KB
ID:	139783  

Last edited by Purple Lady; 06-28-2015 at 03:27 PM.
Purple Lady is offline   Reply With Quote
Old 06-28-2015, 03:26 PM   #21
Purple Lady
Grand Sorcerer
Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.
 
Purple Lady's Avatar
 
Posts: 5,698
Karma: 16542228
Join Date: Feb 2010
Location: Pennsylvania
Device: Huawei MediaPad M5, LG V30, Boyue T80S, Nexus 7 LTE, K3 3G, Fire HD8
I don't see it in my attachment above, so I'll try again.
Click image for larger version

Name:	uploadfromtaptalk1435519624843.jpg
Views:	322
Size:	309.8 KB
ID:	139784
Purple Lady is offline   Reply With Quote
Old 06-28-2015, 03:44 PM   #22
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,461
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Purple Lady View Post
I don't see it in my attachment above, so I'll try again.
Attachment 139784
It is happening because you have an extra closing } at the end of the template.
chaley is offline   Reply With Quote
Old 06-28-2015, 03:51 PM   #23
Purple Lady
Grand Sorcerer
Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.
 
Purple Lady's Avatar
 
Posts: 5,698
Karma: 16542228
Join Date: Feb 2010
Location: Pennsylvania
Device: Huawei MediaPad M5, LG V30, Boyue T80S, Nexus 7 LTE, K3 3G, Fire HD8
Quote:
Originally Posted by chaley View Post
It is happening because you have an extra closing } at the end of the template.
Thanks. I should have noticed that.
Purple Lady is offline   Reply With Quote
Old 06-28-2015, 04:34 PM   #24
Thomas_AR
Zealot
Thomas_AR began at the beginning.
 
Thomas_AR's Avatar
 
Posts: 131
Karma: 10
Join Date: Jan 2015
Location: Buenos Aires
Device: Android
Well i played a little bit with the "if, then, else" in a template.

Code:
:if:{series}:then:{series│_│}:else:{first_author}:::/{series_index││ - }{title} - {first_author}
Downloading books from Dropbox:

Result for Books with series as expected.
_Series/1 - Title - First Author

Result for books without series as expected:
First Author/Title - First Author

So far so good.
If there would be the possibility to define the amount of digits (so that files get correct listed in case there are more than 10 books in a series) in "series_index" i would be more than happy..jaja.

I love it.
Looking forward to Calibre 2.32, so that CC can take his template when books are pushed from Calibre to CC with Wifi.

Last edited by Thomas_AR; 06-28-2015 at 11:54 PM.
Thomas_AR is offline   Reply With Quote
Old 06-29-2015, 07:14 AM   #25
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,461
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Thomas_AR View Post
If there would be the possibility to define the amount of digits (so that files get correct listed in case there are more than 10 books in a series) in "series_index" i would be more than happy..jaja.
Take a look at the CC Template FAQ. The third bullet point in "Basic Syntax" should be of interest to you.

This change will be in the next release, which should be in a day or two.
chaley is offline   Reply With Quote
Old 06-29-2015, 10:52 AM   #26
Thomas_AR
Zealot
Thomas_AR began at the beginning.
 
Thomas_AR's Avatar
 
Posts: 131
Karma: 10
Join Date: Jan 2015
Location: Buenos Aires
Device: Android
Quote:
Originally Posted by chaley View Post
Take a look at the CC Template FAQ. The third bullet point in "Basic Syntax" should be of interest to you.

This change will be in the next release, which should be in a day or two.
Great, looking forward to play and use those digital syntax.
Great job.
So far no more suggestions
Thomas_AR is offline   Reply With Quote
Old 06-30-2015, 11:10 AM   #27
Thomas_AR
Zealot
Thomas_AR began at the beginning.
 
Thomas_AR's Avatar
 
Posts: 131
Karma: 10
Join Date: Jan 2015
Location: Buenos Aires
Device: Android
Just played with the new digit syntax. Working as expected. Later I post my complete template.

Suggestions: %06.2f results for example in 000,35
May it possible to change the digit separator from ',' to '.' ?

Or is there a special reason you have chosen the ','?

Last edited by Thomas_AR; 06-30-2015 at 12:10 PM.
Thomas_AR is offline   Reply With Quote
Old 06-30-2015, 12:26 PM   #28
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,461
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Thomas_AR View Post
Just played with the new digit syntax. Working as expected. Later I post my complete template.

Suggestions: %06.2f results for example in 000,35
May it possible to change the digit separator from ',' to '.' ?

Or is there a special reason you have chosen the ','?
I didn't choose it. Android chose it because that is the standard decimal separator in your locale.
chaley is offline   Reply With Quote
Old 06-30-2015, 02:59 PM   #29
Thomas_AR
Zealot
Thomas_AR began at the beginning.
 
Thomas_AR's Avatar
 
Posts: 131
Karma: 10
Join Date: Jan 2015
Location: Buenos Aires
Device: Android
Quote:
Originally Posted by chaley View Post
I didn't choose it. Android chose it because that is the standard decimal separator in your locale.
Hmmm...
On one side you are right regarding standard decimal separator in my local - Spanish uses ",".
On the other hand Calibre (English and Spanish GUI ) uses the "." when pushing books to my tablet

So here my final template - for now
Code:
 :if: {series}:then:{series:|_|}:else:{first_author} :::/{series_index:%04d/%07.2f|[|] - }{title} -  {first_author}
I use 4(,2) digits in total as I have series up to 3.000 booklets.

P. S.
Are you planning something like a "contains" syntax?

Example:
Code:
 :if: {tags:contains|test} :then: {series_index:%04d} :else: {series_index:%04.2f}:::
Of course this syntac also for other fieldes, not only {tags}

Last edited by Thomas_AR; 06-30-2015 at 11:00 PM.
Thomas_AR is offline   Reply With Quote
Old 07-01-2015, 04:22 PM   #30
Purple Lady
Grand Sorcerer
Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.
 
Purple Lady's Avatar
 
Posts: 5,698
Karma: 16542228
Join Date: Feb 2010
Location: Pennsylvania
Device: Huawei MediaPad M5, LG V30, Boyue T80S, Nexus 7 LTE, K3 3G, Fire HD8
Quote:
Originally Posted by chaley View Post
@Purple Lady: I can confirm that there is is (was) a problem with custom columns used in templates where the custom column was empty. The release alpha version assumes that a missing value is an invalid value. The next release will check if the column is defined but otherwise empty and if so will return an empty value.
This problem came back again. I noticed it in 4.0.0i and it's still there when I updated to 4.0.0j.
Click image for larger version

Name:	uploadfromtaptalk1435782234156.jpg
Views:	176
Size:	181.5 KB
ID:	139899
Purple Lady is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the best file naming convention for CC? PatNY Calibre Companion 8 06-21-2015 06:51 AM
File Naming on Nook STR Pinecone Devices 4 02-26-2014 05:51 PM
PRS-500 File Naming Convention agarner Sony Reader 5 01-06-2012 11:36 AM
File naming on Kindle tomsem Calibre 2 09-15-2010 01:05 AM
File naming strangeness HarryT iRex 2 06-05-2009 11:39 AM


All times are GMT -4. The time now is 08:52 AM.


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