From 5b5b0cd58259a3f6130aa307b0978ad4653ba91d Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Tue, 8 Jun 2021 21:46:58 +0300
Subject: [PATCH] fixup! Rewrite the kodi-scan script in Python.

---
 daemon/kodi_scan | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/daemon/kodi_scan b/daemon/kodi_scan
index 9693f12..d055c78 100755
--- a/daemon/kodi_scan
+++ b/daemon/kodi_scan
@@ -25,14 +25,14 @@ def scan(library=None):
         req = urllib.request.Request(
             kodi_json_rpc_url,
             headers=headers,
-            data=json.dumps(audio_request_data),
+            data=json.dumps(audio_request_data).encode(),
         )
         urllib.request.urlopen(req)  # nosec
     elif library == "video":
         req = urllib.request.Request(
             kodi_json_rpc_url,
             headers=headers,
-            data=json.dumps(video_request_data),
+            data=json.dumps(video_request_data).encode(),
         )
         urllib.request.urlopen(req)  # nosec
     else:
-- 
GitLab