|
|
#1 |
|
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 1006620
Join Date: May 2010
Location: USA
Device: Kindle Fire HD, Kindle 4, Kindle PW, Galaxy Tab
|
Regex Help - Add Book - Insert Filename into Custom Field
I am trying to just rename my ebok files that Amazon's uses in it's Kindle for PC software. I have searched the forum but I cannot see any posts to help me accomplish what I want. All I want to do is when adding the book to calibre to insert the current filename into a custom field so that when I save these same files back to the disk they will be renamed with their original Amazon filename along with the author and title from calibre. Is something like this possible for a regex dummy like me, my custom field name is #filename??
__________________
Nyn |
|
|
|
|
|
#2 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,994
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
1) You'll have to turn off read metadata from file contents in Preferences Adding Books to get access to the filename (unless it's in the book metadata already). 2) You'll see there a list of standard fields you can send data into. You can't send data from the filename directly into a custom field. 3) You could send the complete filename into one of those standard fields, but that will interfere with sending the correct title/author into their fields 4) If you send the complete filename into a field, you can fix 3) by doing a search and replace to parse out the metadata you need from the field with the filename. While doing that S&R, you can send the filename into your custom field. That's how I'd approach it.
__________________
The speed limit on our spacetime highway of life is c - lightspeed. Surprisingly, the posted minimum is also c. We can go no faster, nor any slower! The conversion factor from the time dimension to space is ct. When stationary in space, we must move into the future at c to have our clock tick off t. When moving in space, the spacetime vector c tilts from pure motion in time. The faster we move in the space dimension, the slower we move in the time dimension. Last edited by Starson17; 10-12-2011 at 11:18 AM. |
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 1006620
Join Date: May 2010
Location: USA
Device: Kindle Fire HD, Kindle 4, Kindle PW, Galaxy Tab
|
So there isn't an easy way to send it to a standard field without turning off the read metadata feature? If at all possible I need the author, title and filename, everything else is irrelevant. I am just trying to find an easier way to rename the files so that I can match up my mbp files from my kindle with the books in k4pc. I am ok with using a standard field because I will be using an empty library to accomplish this so it will not be messing up anything in my library.
Nyn
__________________
Nyn |
|
|
|
|
|
#4 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,994
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
You can read metadata from the file, or parse the filename for the metadata. Those are the two options and they are mutually exclusive. If you need the filename, you can't read metadata from inside the file.
__________________
The speed limit on our spacetime highway of life is c - lightspeed. Surprisingly, the posted minimum is also c. We can go no faster, nor any slower! The conversion factor from the time dimension to space is ct. When stationary in space, we must move into the future at c to have our clock tick off t. When moving in space, the spacetime vector c tilts from pure motion in time. The faster we move in the space dimension, the slower we move in the time dimension. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Add Book Regex to Custom field | adept22 | Library Management | 2 | 03-14-2011 04:46 AM |
| Regex and Metadata from filename. | asrrin29 | Calibre | 2 | 09-20-2010 05:13 PM |
| Insert new line with regex | deckoff | Sigil | 6 | 08-08-2010 11:24 AM |
| Bug? "Insert metadata as page at start of book" doesnt encode Comments field properly | rollercoaster | Calibre | 2 | 04-24-2010 10:40 PM |
| Add book regex no longer works | magphil | Calibre | 3 | 03-24-2010 03:40 PM |