View Single Post
Old 09-21-2022, 10:33 AM   #38
npr
Zealot
npr can name that ebook in five wordsnpr can name that ebook in five wordsnpr can name that ebook in five wordsnpr can name that ebook in five wordsnpr can name that ebook in five wordsnpr can name that ebook in five wordsnpr can name that ebook in five wordsnpr can name that ebook in five wordsnpr can name that ebook in five wordsnpr can name that ebook in five wordsnpr can name that ebook in five words
 
Posts: 105
Karma: 37418
Join Date: Jan 2013
Device: Kobo Glo, Aura, H2OE2, Libra 2
For completeness:
I settled on the following small change to the above script. This allows a one hour window to complete adding the newly created kepub's to calibre's database.

$ts = New-TimeSpan -Days 0 -Hours 1 -Minutes 0
$library = "D:\Calibre_Library\"
$curdate = (get-date) - $ts
D:\kepubify\kepubify-windows-64bit.exe --calibre --update --inplace "$library"
dir -Path "$library" -Filter *.kepub -Recurse | Where-Object { $_.CreationTime -gt $curdate} | %{calibredb add -m 'ignore' $_.FullName}
npr is offline   Reply With Quote