rursache / filelist-api-whitelist

This is a python script for changing the whitelisted IP for FileList API automatically running in a docker container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filelist API Whitelist

A simple script that will keep your public IP updated in your Filelist profile so you can keep accessing the API via Prowlarr.

The docker image supports amd64, arm64 and arm/v6/v7 archs

How to run

Python

git clone https://github.com/rursache/filelist-api-whitelist
pip install -r requirements.txt
python filelist_whitelist_ip.py -FL_USERNAME "USER" -FL_PASSWORD "PASS" -FL_CHECK_DELAY 900

Docker CLI

docker run -d \
  --name filelist-api-whitelist \
  --restart unless-stopped \
  -e TZ=Europe/Bucharest \
  -e FL_USERNAME="USER" \
  -e FL_PASSWORD="PASS" \
  -e FL_CHECK_DELAY=900 \
  ghcr.io/rursache/filelist-api-whitelist:latest

Docker Compose

version: '3.2'
services:
  filelist-api-whitelist:
    image: ghcr.io/rursache/filelist-api-whitelist:latest
    container_name: filelist-api-whitelist
    environment:
      TZ: Europe/Bucharest
      FL_USERNAME: "USER"
      FL_PASSWORD: "PASS"
      FL_CHECK_DELAY: 900
    restart: unless-stopped

Note

FL_CHECK_DELAY is the delay between checks in seconds

Acknowledgements

Based upon DevilRange and ihatethecloud's python implementations

LICENSE

This repo is available under the GNU General Public License v3.0. See the LICENSE file for more info.

About

This is a python script for changing the whitelisted IP for FileList API automatically running in a docker container

License:GNU General Public License v3.0


Languages

Language:Python 97.3%Language:Dockerfile 2.7%