Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sralloza/ebook-autoconverter
https://github.com/sralloza/ebook-autoconverter
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/sralloza/ebook-autoconverter
- Owner: sralloza
- Created: 2022-02-10T08:23:54.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-29T00:23:44.000Z (almost 2 years ago)
- Last Synced: 2023-03-09T04:32:32.398Z (almost 2 years ago)
- Language: Python
- Size: 149 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ebook Autoconverter
Script that converts all `epub` ebooks saved in a [calibre web](https://docs.linuxserver.io/images/docker-calibre-web) server to `azw3` (Kindle) and sends them back to the [calibre web](https://docs.linuxserver.io/images/docker-calibre-web) server.
In order to run it, the following env vars must be set:
- `CALIBRE_WEB_URL`: full [calibre web](https://docs.linuxserver.io/images/docker-calibre-web) URL (like `https://google.es`).
- `CALIBRE_WEB_USERNAME`: [calibre web](https://docs.linuxserver.io/images/docker-calibre-web) admin username.
- `CALIBRE_WEB_PASSWORD`: [calibre web](https://docs.linuxserver.io/images/docker-calibre-web) admin password.## Development
### Build image
```shell
docker build -t sralloza/ebook-autoconverter:$VERSION .
docker push sralloza/ebook-autoconverter:$VERSION
```## Run container
Using `-e` flags:
```shell
docker run --rm -e CALIBRE_WEB_URL=XXXXX -e CALIBRE_WEB_USERNAME=USER -e CALIBRE_WEB_PASSWORD=PASSWORD sralloza/ebook-autoconverter:$VERSION
```Using `.env` file:
```shell
docker run --rm --env-file .env sralloza/ebook-autoconverter:$VERSION
````.env` contents:
```text
CALIBRE_WEB_URL=http://127.0.0.1
CALIBRE_WEB_USERNAME=admin
CALIBRE_WEB_PASSWORD=admin123
```