Commit 5b5b0cd5 authored by nimrod's avatar nimrod
Browse files

fixup! Rewrite the kodi-scan script in Python.

parent 075ee30f
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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: