mirror of
https://github.com/standardebooks/web.git
synced 2025-07-09 16:20:27 -04:00
Initial script to insert/update Ebook records
This commit is contained in:
parent
63d411a2e6
commit
ccd73c7cb4
2 changed files with 40 additions and 8 deletions
|
@ -57,7 +57,6 @@ epubcheck="true"
|
|||
recompose="true"
|
||||
feeds="true"
|
||||
bulkDownloads="true"
|
||||
coverArtDatabase="false"
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
usage
|
||||
|
@ -388,14 +387,16 @@ do
|
|||
mv "${imgWorkDir}/${urlSafeIdentifier}"*.{jpg,avif} "${webRoot}/images/covers/"
|
||||
fi
|
||||
|
||||
if [ "${coverArtDatabase}" = "true" ]; then
|
||||
if [ "${verbose}" = "true" ]; then
|
||||
printf "Updating/inserting cover in the cover art database ... "
|
||||
fi
|
||||
verboseDbFlag=""
|
||||
if [ "${verbose}" = "true" ]; then
|
||||
verboseDbFlag="--verbose"
|
||||
printf "Updating/inserting ebook in database ... "
|
||||
fi
|
||||
|
||||
if [ "${verbose}" = "true" ]; then
|
||||
printf "Done.\n"
|
||||
fi
|
||||
"${scriptsDir}"/update-ebook-database ${verboseDbFlag} --ebookWwwFilesystemPath "${webDir}"
|
||||
|
||||
if [ "${verbose}" = "true" ]; then
|
||||
printf "Done.\n"
|
||||
fi
|
||||
|
||||
# Delete the now-empty work dir (empty except for .git)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue