Skip to main content

Simple utility to re-announce torrents for Deluge on a timed interval (single run or indefinitely via CRON)

Project description

Deluge Announce

A script that will announce torrents on a timed interval (CRON).

Prerequisites

  • Python 3.10 or higher
  • Docker (if using Docker setup)

Setup

Options for Use

Running the Docker Container

To run the Docker container with the appropriate environment variables, use the following command:

docker run -e "WEB_URL=<your_web_url>" -e "PASSWORD=<your_web_url_password>" -e "CRON_SCHEDULE=0 * * * *" -v "app_data:/app_data"

This command will mount the app_data volume to persist logs across container restarts.

Running the Script as a Package

  1. Install the package
poetry add deluge-announce
# or
pip install deluge-announce
  1. Use in your Python code
from deluge_announce import Announcer
announcer = Announcer(
    web_url="https://yourweburl.com/",
    password="YOUR PASSWORD",
    cron_schedule="0 * * * *", # runs every hour
)

# Run the notifier once
announcer.run()

# Or run continuously as scheduled by cron
announcer.run_forever()

Checking Logs

Outside of Docker, you can view the logs in ./app_data/logs/.

Notes

  • The app_data volume is used for persistent storage.
  • If you're running the script outside Docker, the app_data folder will be created in your local directory to store logs and the database.
  • The cron_schedule format follows standard cron syntax for scheduling tasks. For example, 0 * * * * runs the script every hour.

Troubleshooting

  • Error Logs: If something goes wrong, check the logs at ./app_data/logs/ for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deluge_announce-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deluge_announce-0.1.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file deluge_announce-0.1.1.tar.gz.

File metadata

  • Download URL: deluge_announce-0.1.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.11.9 Windows/10

File hashes

Hashes for deluge_announce-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9434c0407e253a4169683f9ca408aa75b629b6ce0e6355b26e5944eea9c9e5cf
MD5 94ef9ccea7d6b8e7cadb86c949a805f9
BLAKE2b-256 ce5dfecb8ab1ccf3f7a7ec5fd858f7e6e0de37dace9e8c1ba57cb3982001d6ab

See more details on using hashes here.

File details

Details for the file deluge_announce-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: deluge_announce-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.11.9 Windows/10

File hashes

Hashes for deluge_announce-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 36897c79748ef737ed08a35c7b6c32f6568706bd10a0da7051ac5562bb31708c
MD5 a25b8931442efda4273584031e8a6306
BLAKE2b-256 fd5abc34c53e8c3ebfe0f2f6100c1eb2439369380c7396fc902e380121399744

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page