|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#46 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#47 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,313
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#48 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,740
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
There should be an metadata.opf for every book (I assume that's 7748), as there are 7748 cover.jpg files, but there are only 3,352 .opf files. You could fix that via the calibredb backup_metadata --all command.
Apart from the .jpg and .opf counts, do the file counts from Linux match with the counts in the Tag Browser Format counts, e.g. EPUB 7,775 files, HTMLZ 113, KEPUB 7,748 MBP 12 etc. If not you need to get that sorted out:
|
![]() |
![]() |
![]() |
#49 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
|
![]() |
![]() |
![]() |
#50 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
Quote:
As for kepub, when I "Send to Device", the format that is saved on the fly onto my Kobo is a kepub, whereas the originals (i.e., in Calibre) are 99.99% epub. |
|
![]() |
![]() |
![]() |
#51 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
About CBZ
The terminal command says Quote:
Terminal says *.kepub 7,812 files, 2.3MiB But Calibre says 3 Kepubs that add up, coincidentally to a very-close 2.2MB. Terminal says *.kfx 7,812 files, 2.0MiB But Calibre says 1 KFX at 2.0MB KFX-zip number in terminal and Calibre are both 7 files. Number of MBP files in terminal and Calibre are the same. Mobi number matches up. Calibre says 214 ODT files but Calibre says just one ODT file. Original_epub is a match. PDF is a match. ZIP is a match. |
|
![]() |
![]() |
![]() |
#52 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
Quote:
The terminal command says *.cbz 3 files, 1.7GiB But Calibre shows me 6 CBZ files which, interestingly, also adds up to 1.7 GB. Terminal says *.kepub 7,812 files, 2.3MiB But Calibre says 3 Kepubs that add up, coincidentally to a very-close 2.2MB. Terminal says *.kfx 7,812 files, 2.0MiB But Calibre says 1 KFX at 2.0MB KFX-zip number in terminal and Calibre are both 7 files. Number of MBP files in terminal and Calibre are the same. Mobi number matches up. Calibre says 214 ODT files but Calibre says just one ODT file. Original_epub is a match. PDF is a match. ZIP is a match. |
|
![]() |
![]() |
![]() |
#53 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,535
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Have you tried doing both portions of the calibre library maintenance? One ensures that all content referenced by the database is present in the file system; the other verifies that all files in the file system are present in the database.
|
![]() |
![]() |
![]() |
#54 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,075
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
|
![]() |
![]() |
![]() |
#55 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
Code:
find -type f -name \*\.\* -printf '%f\0%s\n' | gawk ' BEGIN { FS = "\0"; } { split($1, a, "."); ext = tolower(a[length(a)]); files[ext] += 1; size[ext] += $2; } END { PROCINFO["sorted_in"] = "@ind_str_asc"; for (ext in files) { "numfmt --grouping " files[ext] | getline neatfiles "numfmt --to=iec-i --suffix=B --format='%.1f' " size[ext] | getline neatsize print "*." ext " " neatfiles " files, " neatsize; } }' |
![]() |
![]() |
![]() |
#56 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
Not yet. Are there any potential negative repercussions to doing so?
|
![]() |
![]() |
![]() |
#57 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,897
Karma: 31522252
Join Date: Sep 2017
Device: PW3, Fire HD8 Gen7, Moto G7, Sansa Clip v2, Ruizu X26
|
Quote:
Earlier I suggested something like: Code:
find . -iname "*.kepub" -print | wc -l Code:
find . -iname "*" -print | wc -l The numbers from the find/wc command line should match exactly what Calibre tells you inside the app. Mine do. Make sure you are entering the command line correctly, and also that you are in the correct directory when executing the command. Although, I can't imagine you have a whole lot of *.kepub files on your computer outside of the Calibre directory, to give you such a largely incorrect number. Just FYI, there are different parameters you can specify to the "wc" command that give different results (because they are counting different things). Make sure you are using the "-l" parameter. That is "dash lower-case-letter-ell". Example (for my Calibre library): Code:
$ find . -iname "*.azw3" -print | wc -l 3995 $ find . -iname "*.azw3" -print | wc -w 40580 $ find . -iname "*.azw3" -print | wc -c 312925 find . -iname "*.azw3" -print | wc 3995 40580 312925 Code:
$ find . -iname "*.azw3" -print | wc -l 3995 $ find . -iname "*azw3" -print | wc -l 3995 $ find . -iname "*\.azw3" -print | wc -l 3995 $ find . -name "*\.azw3" -print | wc -l 3995 $ find . -name "*.azw3" -print | wc -l 3995 $ find . -name "*azw3" -print | wc -l 3995 |
|
![]() |
![]() |
![]() |
#58 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
Quote:
https://www.mobileread.com/forums/sh...1&postcount=55 Update: I'll put it in spoilers here too: Spoiler:
|
|
![]() |
![]() |
![]() |
#59 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,535
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Quote:
Even if there are repercussions, I'm sure you do have backup(s) of your library.... |
|
![]() |
![]() |
![]() |
#60 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,897
Karma: 31522252
Join Date: Sep 2017
Device: PW3, Fire HD8 Gen7, Moto G7, Sansa Clip v2, Ruizu X26
|
Your awk script is bad. Actually, the awk commands are OK, but where you are failing is in trying to make things "neat" using numfmt. Delete that junk that attempts to beautify the output, just display the raw numbers, and your script works much better:
Code:
find -type f -name \*\.\* -printf '%f\0%s\n' | gawk ' BEGIN { FS = "\0"; } { split($1, a, "."); ext = tolower(a[length(a)]); files[ext] += 1; size[ext] += $2; } END { PROCINFO["sorted_in"] = "@ind_str_asc"; for (ext in files) { print "*." ext " " files[ext] " files, " size[ext] " bytes"; } }' |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Library File Structure for Books Exported to eBook Device | otta56 | Library Management | 7 | 04-15-2020 10:29 AM |
How to sync library after exported library | chantw0968 | Library Management | 3 | 10-30-2017 08:40 PM |
Books blank when exported | Joosca77 | Library Management | 2 | 06-10-2011 10:33 PM |
7000 books ! A new milestone for the MR Library ! | zelda_pinwheel | Announcements | 26 | 12-12-2008 11:46 AM |