Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 12-24-2015, 07:54 AM   #1
font332
Connoisseur
font332 began at the beginning.
 
Posts: 54
Karma: 10
Join Date: Dec 2015
Device: kpw2
Prevent filename changing when adding to library or saving to device

Hello.
As in thread name. I did a quick search on this forum and the internet but english is not my native language so my search probably wasn't that deep and good therefore I apologize if this question have been answered elsewhere or is dumb.
What I want is to convert some books from epub to mobi but just on adding those books to calibre library file-names are changed and therefore after converting and saving to device or somewhere else too.
I know that there is an option to template, changed the way file-names are given at saving to device but I also after a search I still don't know if I could do something there.
font332 is offline   Reply With Quote
Old 12-24-2015, 11:21 AM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Yes, under Preferences ==> Saving books to disk or Sending books to device, you can set a filename template based on the metadata -- sent/exported books will be saved with that filename.

No, you have no control whatsoever over the filename of calibre's copy of the book.

...

Is there any particular detail that you would like to ask about?
eschwartz is offline   Reply With Quote
Advert
Old 12-24-2015, 03:46 PM   #3
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,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by font332 View Post
Hello.
As in thread name. I did a quick search on this forum and the internet but english is not my native language so my search probably wasn't that deep and good therefore I apologize if this question have been answered elsewhere or is dumb.
What I want is to convert some books from epub to mobi but just on adding those books to calibre library file-names are changed and therefore after converting and saving to device or somewhere else too.
I know that there is an option to template, changed the way file-names are given at saving to device but I also after a search I still don't know if I could do something there.
@font332 - if you only want to convert epub to mobi then you could use the ebook-convert command. It will give you full control over the file names.

BR
BetterRed is offline   Reply With Quote
Old 12-24-2015, 04:20 PM   #4
font332
Connoisseur
font332 began at the beginning.
 
Posts: 54
Karma: 10
Join Date: Dec 2015
Device: kpw2
Thanks for quick reply.
After it I went to: http://manual.calibre-ebook.com/template_ref.html and find out that the thing I want is "field(name)" but now I don't know how to input this into save settings in calibre.
font332 is offline   Reply With Quote
Old 12-25-2015, 02:14 PM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Where:

Quote:
Originally Posted by eschwartz View Post
Yes, under Preferences ==> Saving books to disk or Sending books to device, you can set a filename template based on the metadata -- sent/exported books will be saved with that filename.
What:

Code:
{fieldname}
But the real question is, what do you want the exported filename to look like?
Help us by giving us the information we need to help you.


P.S. That would be http://manual.calibre-ebook.com/template_lang.html

The reference page is not the same thing at all, it is far more specific and not meant as a tutorial.

Last edited by eschwartz; 12-25-2015 at 02:17 PM.
eschwartz is offline   Reply With Quote
Advert
Old 12-26-2015, 06:55 PM   #6
font332
Connoisseur
font332 began at the beginning.
 
Posts: 54
Karma: 10
Join Date: Dec 2015
Device: kpw2
You are such a kind person, thank You.
I want to keep the name of the file/book after converting and saving somewhere, the same as it was before adding to calibre.
So I have like "The Four Noble Truths[1999]. A Study Guide - Thanissaro Bhikkhu.epub" but after I add this to calibre and going to calibre library folder that was created of that book I see it's named now like "01MMain.book - Than.epub" and even after changing in mentioned preferences to "{fieldname}" I get after converting and saving a file "21.mobi".
font332 is offline   Reply With Quote
Old 12-26-2015, 07:07 PM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
"fieldname" implies you have to specify a specific field...


Question: Where in calibre do you have the original filename?
I have a custom column "#origfile" where I manually store the original filename, so I use a filename save template which under certain conditions evaluates to
Code:
{#origfile}
eschwartz is offline   Reply With Quote
Old 12-27-2015, 04:41 PM   #8
font332
Connoisseur
font332 began at the beginning.
 
Posts: 54
Karma: 10
Join Date: Dec 2015
Device: kpw2
Quote:
Originally Posted by eschwartz View Post
"fieldname" implies you have to specify a specific field...
Now I got it, it think
Quote:
Originally Posted by eschwartz View Post
Question: Where in calibre do you have the original filename?
It seems that nowhere
Quote:
Originally Posted by eschwartz View Post
I have a custom column "#origfile" where I manually store the original filename
How to do that?
I mean I know how to add custom column, but how to tell it to keep orginal file names?
font332 is offline   Reply With Quote
Old 12-27-2015, 07:20 PM   #9
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: 30,939
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 font332 View Post
How to do that?
I mean I know how to add custom column, but how to tell it to keep orginal file names?
Type it in. That is what Manually means
theducks is offline   Reply With Quote
Old 12-28-2015, 04:39 PM   #10
font332
Connoisseur
font332 began at the beginning.
 
Posts: 54
Karma: 10
Join Date: Dec 2015
Device: kpw2

That's the thing I wanted to avoid. It would take years to enter that data.

@edit
I'm genius. Will run this macro through the night ha ha:
https://www.youtube.com/watch?v=obCrbIeSqoE

Last edited by font332; 12-28-2015 at 05:51 PM.
font332 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre - Saving Library & Re Adding to Formatted PC again? book64 Calibre 15 08-12-2016 05:09 PM
Saving changes in library and device automatically Jorge Junior Library Management 2 06-23-2014 03:10 AM
Prevent filename changing JSWolf Calibre 4 01-08-2012 09:41 AM
Adding Books to Device Library remus.grrrl Devices 4 02-10-2011 03:06 PM
MetaData from FileName and Saving Templates ThemStones Calibre 2 12-05-2009 09:17 AM


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


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