From 6604aded9ec8415b8f41e097afed012af4e3b54d Mon Sep 17 00:00:00 2001 From: JackDandy Date: Sat, 8 Feb 2020 20:57:12 +0000 Subject: [PATCH] Fix Windows Kodi episode library update. --- CHANGES.md | 7 ++++++- sickbeard/notifiers/kodi.py | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 2e35529..deca8db 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 0.21.12 (2020-02-02 00:40:00 UTC) +### 0.21.13 (2020-02-08 20:55:00 UTC) + +* Fix Windows Kodi episode library update + + +### 0.21.12 (2020-02-02 00:40:00 UTC) * Fix handling the error when failing to remove a file diff --git a/sickbeard/notifiers/kodi.py b/sickbeard/notifiers/kodi.py index ab17c1d..5ee1230 100644 --- a/sickbeard/notifiers/kodi.py +++ b/sickbeard/notifiers/kodi.py @@ -375,7 +375,8 @@ class KodiNotifier(Notifier): return False self._log_debug(u'Updating %s on %s at %s' % (show_name, host, path)) - command = dict(method='VideoLibrary.Scan', params={'directory': '%s' % json.dumps(path)[1:-1]}) + command = dict(method='VideoLibrary.Scan', + params={'directory': '%s' % json.dumps(path)[1:-1].replace('\\\\', '\\')}) response_scan = self._send_json(host, command) if not response_scan.get('OK'): self._log_error(u'Update of show directory failed for %s on %s at %s response: %s' %