Skip to content
Snippets Groups Projects
Commit 075ee30f authored by nimrod's avatar nimrod
Browse files

fixup! Rewrite the kodi-scan script in Python.

parent 85bc006c
No related branches found
No related tags found
No related merge requests found
Pipeline #1657 passed
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment