From 075ee30fdfb4154f3485bd98f814da6e751a0f12 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Tue, 8 Jun 2021 20:29:59 +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 1e9ba49..9693f12 100755 --- a/daemon/kodi_scan +++ b/daemon/kodi_scan @@ -27,14 +27,14 @@ def scan(library=None): headers=headers, data=json.dumps(audio_request_data), ) - urllib.request.ulropen(req) + urllib.request.urlopen(req) # nosec elif library == "video": req = urllib.request.Request( kodi_json_rpc_url, headers=headers, data=json.dumps(video_request_data), ) - urllib.request.ulropen(req) + urllib.request.urlopen(req) # nosec else: scan("video") scan("audio") -- GitLab