View Single Post
Old 09-13-2022, 10:22 PM   #36
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by npr View Post
From the kepubify web site I've tried the instruction to convert my calibre library with kepubify. All went well until the last line (add to calibredb) which took ages to complete, something like 30 minuets, is there something wrong with line No4.
Just adding one epub and converting it to kepub it again takes ages to add the database, there must be a better way.

Kepubify BTW is fantastic and doesn't have the problems I was having with the kepub converter plugin.

Open PowerShell.
Type $library = "C:\path\to\Calibre Library\", setting your library path accordingly, and press enter. This will set the path used in the next two commands.
Type C:\path\to\kepubify.exe --calibre --update --inplace "$library", setting the path to kepubify accordingly, and press enter. This will convert any unconverted books. If you also want to re-convert books which are already converted, remove the --update.
Type dir -Path "$library" -Filter *.kepub -Recurse | %{calibredb add -m 'ignore' $_.FullName} and press enter. This will add the converted books to the Calibre database.
It's since it calls calibredb on all kepubs, including the old ones. You could try adding `$curdate = (Get-Date)` before kepubify and `| Where-Object { $_.CreationTime -gt $curdate}` before calibredb.
geek1011 is offline   Reply With Quote