Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
Pipeline #3586 passed
...@@ -15,7 +15,7 @@ import urllib.request ...@@ -15,7 +15,7 @@ import urllib.request
def scan(library=None): def scan(library=None):
"""Trigger a Kodi library scan, either just audio, video or both.""" """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"} headers = {"content-type": "application/json"}
base_request_data = {"jsonrpc": "2.0", "id": "transmission"} base_request_data = {"jsonrpc": "2.0", "id": "transmission"}
audio_request_data = {**base_request_data, "method": "AudioLibrary.Scan"} audio_request_data = {**base_request_data, "method": "AudioLibrary.Scan"}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment