Commit 3361b76e authored by nimrod's avatar nimrod
Browse files

Daemon: Fix for the kodi_scan script.

The Docker network changes to 172.20.0.0/16 (see the debian_server
Ansible role in the homelab repo).
parent 8498bda8
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ import urllib.request

def scan(library=None):
    """Trigger a Kodi library scan, either just audio, video or both."""
    kodi_json_rpc_url = "http://172.18.0.1:8080/jsonrpc"
    kodi_json_rpc_url = "http://172.20.0.1:8080/jsonrpc"
    headers = {"content-type": "application/json"}
    base_request_data = {"jsonrpc": "2.0", "id": "transmission"}
    audio_request_data = {**base_request_data, "method": "AudioLibrary.Scan"}