![]() |
#511 | |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Dec 2023
Device: Kindle Oasis 8 gen
|
Quote:
|
|
![]() |
![]() |
![]() |
#512 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() Posts: 45
Karma: 510
Join Date: Sep 2012
Device: Kindle
|
Does the CLI expect simple filenames for merge?
Does the CLI expect simple filenames for merge? In other words, for multiple files, is it expecting something like--
$ calibre-debug --run-plugin EpubMerge file1.epub file2.epub book9.epub I've got a directory with several epubs and with some fairly typical ebook names (by that I mean they are quite varied), as an example-- My ebook of all the planets_ John Smith.epub How to make a souffle(part I) _ Web Recipes.epub The Christmas Tree Story, Nothing Artificial.epub I've tried many ways to get these oddly named files formatted so EpubMerge can handle, but I've hit a point where I'm not sure exactly sure what it's expecting. ![]() |
![]() |
![]() |
![]() |
#513 | ||
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,504
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
Unless it's just an oversight that you forgot to include in your post, I suspect you need the '--' after '--run-plugin EpubMerge' that tells calibre-debug's option parser to stop and pass everything after that to EpubMerge. From first post: Quote:
|
||
![]() |
![]() |
![]() |
#514 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() Posts: 45
Karma: 510
Join Date: Sep 2012
Device: Kindle
|
Quote:
![]() UPDATE: that did the trick. ![]() Built file list with find ~/Documents/mergeTest/ -type f | sed 's/ /\\ /g' | tr '\n' ' ' > epubs-list2 Then ran EpubMerge from calibre-debug CLI cat epubs-list2 | xargs calibre-debug --run-plugin EpubMerge -- This produced the default merge.epub file. Last edited by tatteredscroll; 12-12-2023 at 11:04 PM. |
|
![]() |
![]() |
![]() |
#515 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,504
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
FYI, you can save several steps like so: Code:
find ~/Documents/mergeTest/ -type f -print0 | xargs -0 calibre-debug --run-plugin EpubMerge -- |
|
![]() |
![]() |
![]() |
#516 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() Posts: 45
Karma: 510
Join Date: Sep 2012
Device: Kindle
|
|
![]() |
![]() |
![]() |
#517 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Dec 2023
Device: kindle oasis 3
|
for windows batch file
thanks for the tip~~
![]() and gpt4 create this windows batch file, it works well (assuming that 'calibre-debug' is included in your windows path) @echo off setlocal enabledelayedexpansion set FILES= for %%f in ("C:\your_path\*.epub") do ( set FILES=!FILES! "%%f" ) calibre-debug --run-plugin EpubMerge -- %FILES% |
![]() |
![]() |
![]() |
#518 | |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Dec 2023
Device: kindle oasis 3
|
for windows
Quote:
and gpt4 create this batch file, it works well (assuming that calibre-debug included in your windows path) Code:
@echo off setlocal enabledelayedexpansion set FILES= for %%f in ("C:\your_path\*.epub") do ( set FILES=!FILES! "%%f" ) calibre-debug --run-plugin EpubMerge -- %FILES% |
|
![]() |
![]() |
![]() |
#519 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,504
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Test Version
2024-02-11 - Update Translations - Decrypt encrypted/obfuscated font files. Recently, it's come up in the EpubSplit thread that encrypted font files weren't being handled gracefully. It turns out Calibre Convert has been 'preserving font encryption' for nearly 15 years. This version of EpubMerge decrypts the font files, but it doesn't make any attempt to re-encrypt them again in the merged epub. I just don't see the point. There are, in fact, two different 'encryptions' used, according to the Calibre code. I've carried over the implementation for both, but I only have one to test with. FYI. Last edited by JimmXinu; 04-01-2024 at 10:25 AM. Reason: remove obsolete test version |
![]() |
![]() |
![]() |
#520 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,504
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Version Released
Version 2.18.0 - 2024-04-01 - Update Translations - Decrypt encrypted/obfuscated font files - Save opf:file-as attr from author tags in CLI #13 - Actually have 'en' default for `-l` in CLI. |
![]() |
![]() |
![]() |
#521 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,504
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Test Version
2024-07-16 - Add title/author/filename Job log output on individual input epub failure #17 - Restructure for easier CLI install - contributed by Matheus Last edited by JimmXinu; 07-20-2024 at 10:30 AM. Reason: remove obsolete test version |
![]() |
![]() |
![]() |
#522 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,504
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Version Released
Version 3.1.0 - 2024-07-20 - Update Translations - Add title/author/filename output on individual input epub failure. #17 |
![]() |
![]() |
![]() |
#523 |
Member
![]() Posts: 13
Karma: 10
Join Date: Feb 2019
Device: Lenovo desktop Win 10 Chrome browser
|
New version of EpubMerge fails
For about 5 years we have been merging about a half-dozen Epub files of the articles in our quarterly journal using Calibre w/EpubMerge plugin. Until the last issue we were using Calibre V5 but we just updated to V7 and updated the plugin. We can no longer successfully merge our files and our next issue is scheduled to be released next wee. We cannot find any legible error message or reason for failure. We are doing nothing differently from the past. What can we do now?
|
![]() |
![]() |
![]() |
#524 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,504
Karma: 4277235
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Run Calibre in debug mode (under Calibre's Preferences dropdown) and try it. When you quit Calibre, you'll get a debug log with additional output.
Otherwise, I'd need to see the epubs involved to. |
![]() |
![]() |
![]() |
#525 |
Member
![]() Posts: 13
Karma: 10
Join Date: Feb 2019
Device: Lenovo desktop Win 10 Chrome browser
|
Merge failure
I did the debug process but the log indicated nothing wrong but still output failed. I used exactly the same files on my own laptop which was running Calibre 7.6 instead of 7.16 and EpubMerge v2.17 instead of 3.1. It worked fine.
But on the desktop with versions 7.16 and 3.1, the same inputs and settings leads to "EpubMerge failed. No new Epub file was created..." |
![]() |
![]() |
![]() |
Tags |
calibre, combine books, epubmerge, make collection, merge epub, merge epubs |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] Quick Preferences | kiwidude | Plugins | 62 | 03-16-2024 11:47 PM |
[GUI Plugin] FanFictionDownLoader | JimmXinu | Plugins | 3985 | 05-08-2015 11:18 PM |
eBookCleaner | slobberchopz | Plugins | 9 | 02-23-2012 04:25 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |