Commit 075ee30f authored by nimrod's avatar nimrod
Browse files

fixup! Rewrite the kodi-scan script in Python.

parent 85bc006c
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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")