Skip to content

docker container for automating abtorrents PM checking and cardigann definition that allows username/password login for Prowlarr

Notifications You must be signed in to change notification settings

captmicr0/abtorrents-proxy

Repository files navigation

ABTorrents Proxy

ABTorrents Proxy is a Python script that acts as a proxy server, providing an HTTP server to forward requests to an ABTorrents Selenium browser instance. It is designed to make the Cardigan custom definition able to handle logins and search ABTorrents via the Selenium instance.

Features

  • HTTP server forwarding requests to an ABTorrents Selenium browser instance.
  • Handles logins and searches on ABTorrents.
  • Uses Selenium and ChromeDriver for browser automation.

Prerequisites

  • Docker

Configuration

Set the following environment variables before running the script:

ABT_URL: ABTorrents URL (not required, defaults to https://abtorrents.me/)
ABT_PROXYPORT: Proxy port (not required, defaults to default: 8080)
ABT_USERNAME: ABTorrents username (not required)
ABT_PASSWORD: ABTorrents password (not required)

Docker container build

Local build:

git clone https://github.com/captmicr0/abtorrents-proxy
cd abtorrents-proxy
docker build -t captmicr0/abtorrents-proxy:latest .

Docker container usage

Command line:

docker run ghcr.io/captmicr0/abtorrents-proxy:latest

Docker-Compose:

version: "3.7"
services:
  ###--- ABTORRENTS-PROXY ---------------------------------------------------###
  abtorrents-proxy:
    image: ghcr.io/captmicr0/abtorrents-proxy:latest
    container_name: abtorrents-proxy
    volumes:
      # TIMEZONE
      - /etc/localtime:/etc/localtime:ro
    ports:
     - 8080:8080
    restart: always

The proxy server and ABTProwlarrHandler server will start. The proxy will overwrite requests to ABTorrents domain, forwarding them to the ABTProwlarrServer instance. The ABTProwlarrServer instance will request the page from the ABTorrents instance which will return the webpages source. It checks for unread PM's after login and before each request made by the ABTProwlarrServer instance, if any exist it will open them which marks them as read, and resume returning the webpages source.

Prowlarr configuration

Install abtorrents-proxy.yml in Prowlarr by adding it to the Definitions/Custom folder. Add a new proxy in prowlarr, entering the docker container hostname or IP and port (default port 8080). Add a new indexer in prowlarr, chosing abtorrents-proxy, and entering your username and password. Configure the indexer to use the proxy you added. Test and save the indexer config.

License

This project is licensed under the MIT License.

About

docker container for automating abtorrents PM checking and cardigann definition that allows username/password login for Prowlarr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages