Add a choice

This commit is contained in:
2024-03-08 20:26:38 +08:00
parent 3982a2b9c2
commit 4a39c3afb6
6 changed files with 141 additions and 6 deletions

View File

@@ -8,3 +8,18 @@ python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```
# Usage
## Termux
```shell
sudo python main.py -r
# Only export as txt file
sudo python main.py --type=txt -r
# Only export as epub file
sudo python main.py --type=epub -r
# Export all supported type
sudo python main.py --type=epub,txt -r
# Export single chapter with chapter id
sudo python main.py ec -C <chapterid>
# Export book with book id
sudo python main.py eb -B <bookid>
```