From f2105d6f4f9045df0032bcdcaf8664bb354a6a28 Mon Sep 17 00:00:00 2001 From: Clay Date: Tue, 17 Sep 2024 14:44:52 -0400 Subject: [PATCH] Added force update live TV --- Jellyfin_Fix_and_Scan.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Jellyfin_Fix_and_Scan.sh b/Jellyfin_Fix_and_Scan.sh index 3dfb502..5412887 100644 --- a/Jellyfin_Fix_and_Scan.sh +++ b/Jellyfin_Fix_and_Scan.sh @@ -42,4 +42,15 @@ if [ -n "$error_found_1" ] || [ -n "$error_found_2" ]; then else echo "No error found in journal." fi + + +#Even if no DB curruption, update the live TV, why not? +# Trigger Live TV / M3U scan +echo "Triggering Live TV / M3U scan..." +curl -X POST \ + -H "Content-Type: application/json" \ + -H "X-Emby-Token: $API_KEY" \ + "$JELLYFIN_URL/ScheduledTasks/Running/bea9b218c97bbf98c5dc1303bdb9a0ca" +echo "Live TV / M3U scan triggered." + exit 0