File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 7
7
echo " STARTING NEW-BOOK-PROCESSING SCANNER"
8
8
9
9
# Folder to monitor, replace "/books/to_process" with the folder you want to monitor e.g. your download folder for books
10
- WATCH_FOLDER=grep -o ' "ingest_folder": "[^"]*' /etc/calibre-web-automator/dirs.json | grep -o ' [^"]*$'
10
+ WATCH_FOLDER=$( grep -o ' "ingest_folder": "[^"]*' /etc/calibre-web-automator/dirs.json | grep -o ' [^"]*$' )
11
11
echo " Watching folder: $WATCH_FOLDER "
12
12
13
13
# Monitor the folder for new files
Original file line number Diff line number Diff line change 7
7
echo " STARTING CALIBRE SCANNER"
8
8
9
9
# Folder to monitor
10
- WATCH_FOLDER=grep -o ' "import_folder": "[^"]*' /etc/calibre-web-automator/dirs.json | grep -o ' [^"]*$'
10
+ WATCH_FOLDER=$( grep -o ' "import_folder": "[^"]*' /etc/calibre-web-automator/dirs.json | grep -o ' [^"]*$' )
11
11
echo " Watching folder: $WATCH_FOLDER "
12
12
13
13
# Calibre library path
14
- CALIBRE_LIBRARY=grep -o ' "calibre_library_dir": "[^"]*' /etc/calibre-web-automator/dirs.json | grep -o ' [^"]*$'
14
+ CALIBRE_LIBRARY=$( grep -o ' "calibre_library_dir": "[^"]*' /etc/calibre-web-automator/dirs.json | grep -o ' [^"]*$' )
15
15
echo " Calibre library: $CALIBRE_LIBRARY "
16
16
17
17
# Function to add new eBook to Calibre database
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ NC='\033[0m' # No Color
7
7
# For help with S6 commands ect.: https://wiki.artixlinux.org/Main/S6
8
8
9
9
# Install required packages
10
+ apt install -y xdg-utils
10
11
apt install -y inotify-tools
11
12
apt install -y python3
12
13
apt install -y python3-pip
@@ -28,6 +29,7 @@ python3 $SCRIPT_DIR/setup.py
28
29
mkdir /etc/calibre-web-automator
29
30
cp " $SCRIPT_DIR /new-book-processor.py" /etc/calibre-web-automator/new-book-processor.py
30
31
cp " $SCRIPT_DIR /dirs.json" /etc/calibre-web-automator/dirs.json
32
+ rm " $SCRIPT_DIR /dirs.json"
31
33
cp " $SCRIPT_DIR /check-cwa-install.sh" /etc/calibre-web-automator/check-cwa-install.sh
32
34
33
35
# Add aliases to .bashrc
You can’t perform that action at this time.
0 commit comments