From 3361b76edeb76ff163da4c15300e6d8bf514a9e4 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sat, 21 Oct 2023 15:19:29 +0300
Subject: [PATCH] Daemon: Fix for the kodi_scan script.

The Docker network changes to 172.20.0.0/16 (see the debian_server
Ansible role in the homelab repo).
---
 daemon/kodi_scan | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/daemon/kodi_scan b/daemon/kodi_scan
index 2b6a6af..59eb59b 100755
--- a/daemon/kodi_scan
+++ b/daemon/kodi_scan
@@ -15,7 +15,7 @@ import urllib.request
 
 def scan(library=None):
     """Trigger a Kodi library scan, either just audio, video or both."""
-    kodi_json_rpc_url = "http://172.18.0.1:8080/jsonrpc"
+    kodi_json_rpc_url = "http://172.20.0.1:8080/jsonrpc"
     headers = {"content-type": "application/json"}
     base_request_data = {"jsonrpc": "2.0", "id": "transmission"}
     audio_request_data = {**base_request_data, "method": "AudioLibrary.Scan"}
-- 
GitLab