Onleiharr allows users to monitor specific URLs on the Onleihe website, receive notifications when new media is available, and automatically rent or reserve media based on predefined keywords.
auto_rent_keywords.txt
.pip install -r requirements.txt
config.example.ini
template to config.ini
and apprise.example.yml
to apprise.yml
The config.ini
file contains several sections:
[GENERAL]:
poll_interval_secs
: Interval in seconds between consecutive checks of the Onleihe URLs.auto_rent_keywords_path
: Path to the text file containing part of the titles of media to be auto-rented.[NOTIFICATION]:
apprise_config_path
: Path to the Apprise configuration file for notifications.test_notification
: Set to True
to send a test notification on startup. Otherwise, set to False
.email
: E-Mail address to receive Onleihe media reservation/availability mails (can be omitted)[ONLEIHE-CREDENTIALS]:
username
: Your Onleihe username.password
: Your Onleihe password.library
: The name of your library.library-id
: Your personal library ID.[ONLEIHE-URLS]:
config.ini
and apprise.yml
to your needs.auto_rent_keywords.txt
.main.py
script.docker build -t onleiharr .
docker run -it --rm --name onleiharr -v $(pwd)/apprise.yml:/app/apprise.yml -v $(pwd)/config.ini:/app/config.ini -v $(pwd)/auto_rent_keywords.txt:/app/auto_rent_keywords.txt onleiharr
ansible-playbook -i your_inventory ansible/onleiharr.yaml
This project is licensed under the MIT License.
Pull requests are welcome. For major changes, please open an issue first to discuss what you'd like to change.
Note: The Onleiharr project and this README are independent and not affiliated with the official Onleihe website or the organizations behind it.