Skip to content

PhilippKammann/Komga-Scripts

Repository files navigation

Komga-Scripts

Collection of scripts for use with Komga. Provided by the Komga-Discord community.

For more information, please visit the Komga-Discord server. Discord

Scripts

  • resetKomgaPassword.py

    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.

  • updateSortTitle.py

    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
  • emailNotification.py (requires .env)

    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
  • anilist_collection.py (requires .env)

    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

Environment Variables

The following environment variables are required for some scripts to work. Set them in your .env file. See .env.example for an example.

  • KOMGA_URL

    The URL of your Komga server.
        KOMGA_URL=http://192.168.123.45:8080
  • KOMGA_USER

    The username of an Admin user.
  • KOMGA_PASSWORD

    The password of the Admin user.
        KOMGA_PASSWORD=supersecretpassword

About

Collection of scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages