Collection of scripts for use with Komga. Provided by the Komga-Discord community.
For more information, please visit the Komga-Discord server.
-
If you want to reset the Admin password, you need to do it through the database. This script will do that for you.
python resetKomgaPassword.py <path to database.sqlite>
You will be prompted to choose a user and a new password, which will be hashed and stored in the database. The
<path to database.sqlite>
is the path to the database file, found in your Komga config folder. -
This script will update the sort title of all your series by removing the leading articles (a, an, the) and appending it to the end of the title. Change the
articles
list in the script to your liking. Change the URL, username and password to match your Komga server.python updateSortTitle.py
-
With this script you can send an email notification to all your users, using their E-Mail address. You need to configure an SMTP server in the script before you can use it. It will notify abut all new books in the notification interval. Use a cronjob to run this script regularly.
python emailNotification.py
-
Create a collection in Komga based on your Anilist manga list. Split into reading, planned and completed collections. You need to specify your Anilist username(s) and Komga library ids in the script before you can use it.
python updateSortTitle.py
The following environment variables are required for some scripts to work.
Set them in your .env
file. See .env.example
for an example.
-
The URL of your Komga server.
KOMGA_URL=http://192.168.123.45:8080
- The username of an Admin user.
-
The password of the Admin user.
KOMGA_PASSWORD=supersecretpassword