#!/bin/bash
# Trigger Plex matching for appearances
# Runs via cron to populate plex_rating_key and plex_show_rating_key

/opt/media-downloader/scripts/get-api-token.sh >/dev/null 2>&1
/opt/media-downloader/scripts/api-call.sh "/api/appearances/plex/match" -X POST -H "Content-Type: application/json" >/dev/null 2>&1

echo "$(date): Plex matching triggered" >> /var/log/media-downloader/plex-match.log
