Usage#
To run Trailer Finder after installation and configuration, you have two main methods: running it manually or using Docker.
Running Manually#
Clone the Repository
Clone the GitHub repository to your local machine:
git clone https://github.com/kalibrado/trailer-finder.git cd trailer-finder
Install Requirements
Install the necessary Python dependencies:
pip install -r requirements.txt
Configure the Application
Rename config.sample.yaml to config.yaml and configure it with your API keys and other settings. This file should be located in the config directory.
Ensure you configure API keys for TMDB, Radarr, and Sonarr, along with any other required settings.
Running the Tool
To start the tool, run:
python main.py
Stopping the Tool
To stop the tool, use Ctrl + C in the console.
Logs
Logs are displayed in the console and can be redirected to log files if needed.
Using Docker#
To use Docker, pull the custom Docker image and run it:
Pull the Docker Image
docker pull ldfe/trailer-finder:tagname
Run the Docker Container
docker run -d --name trailer-finder-app ldfe/trailer-finder:tagname
Using Docker Compose#
Docker Compose can be used to manage Trailer Finder deployment with its dependencies:
Create a `docker-compose.yml` File
Here’s a sample docker-compose.yml configuration:
version: "3" services: trailer-finder: image: ldfe/trailer-finder:latest restart: always security_opt: - no-new-privileges:true volumes: - ./config.yaml:app/config/config.yaml # Path to the configuration file - /mnt/Media1:/mnt/Media1 # Media folder 1 - /mnt/Media2:/mnt/Media2 # Media folder 2
Launch the Service
Start the service with Docker Compose:
docker-compose up -d