![]() |
#1 |
Member
![]() Posts: 13
Karma: 10
Join Date: Jun 2020
Device: iPad, Marvin
|
CLI: can I swap author and title in metadata?
I can do this the hard way, by embedding invocations of ebook-meta in a higher level scripting language like Tcl or whatever. But it would be nice if I could do it with the syntax for ebook-meta command.
I have a whole whack of epubs, obviously formatted by amateurs, in which the author name is in the title metadata field and vice versa. Maybe 60 or more. Really messes up my author-based library index in Marvin ![]() I checked the manpage and have to admit I don't see anything obviously encouraging... But given how incredibly common (and vexing!) this type of problem is, wouldn't it be nice if the command honoured a syntax like ebook-meta -a -m title -t -m author (set field Author (-a flag) to Metadata (-m) "Title" field value) or even ebook-meta -switch -a -t I'm probably dreaming here ![]() |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,260
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Load them all into calibre, select all books with ctrl+a, click edit metadata, select swap title and author, click OK. done.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Member
![]() Posts: 13
Karma: 10
Join Date: Jun 2020
Device: iPad, Marvin
|
thanks for the info
Quote:
Still, I really prefer CLI :-). I used Calibre the app just about one time years ago, then discovered the CLI tools and never fired it up again. No offence to the devs, I'm sure it's a cool app and works great, I'm just CLI-oriented. And I do all my e-reading with Marvin on an iPad. I absolutely love ebook-convert which lets me bulk-convert any number of mobis or pdfs with one command :-). For those who haven't discovered how easy this is: find . -name '*.mobi' -exec /Applications/calibre.app/Contents/console.app/Contents/MacOS/ebook-convert {} .epub \; And I wish the metadata swap-2-fields function were available similarly through ebook-meta. In the meantime, just another script. ![]() |
|
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,957
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
AFAIK those Bulk edit has been there since at least 1.x
|
![]() |
![]() |
![]() |
#5 | |
Enthusiast
![]() Posts: 45
Karma: 10
Join Date: Apr 2016
Location: Near Seattle
Device: Amazon Fire 10
|
I had a similar question here:
https://www.mobileread.com/forums/sh...=330037&page=2 My "solution" Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Idea: Swap Title/Author hotkey. | kunkel321 | Library Management | 20 | 06-05-2020 03:34 PM |
cannot figure out, please help: bulk metadata swap numeric mo/yr in title w/ regex | anoukaimee | Library Management | 5 | 11-07-2019 02:36 AM |
Swap Title and Author | rorschach | Calibre | 1 | 12-21-2013 08:23 AM |
Keyboard shortcut - Swap Author and Title | pepperleaf | Library Management | 6 | 10-21-2012 08:06 AM |
Problem with Swap Author & Title. | scotmad | Calibre | 4 | 02-10-2011 02:24 PM |