From 293dc7a7680beabb3efa788ef00f1a98c478a8a2 Mon Sep 17 00:00:00 2001
From: Matt <mcarlton00@gmail.com>
Date: Tue, 11 May 2021 19:51:34 -0400
Subject: [PATCH] Make sure numpy doesn't cause issues

---
 jellyfin_kodi/jellyfin/ws_client.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/jellyfin_kodi/jellyfin/ws_client.py b/jellyfin_kodi/jellyfin/ws_client.py
index 3ba8d6b3..6c80d9b4 100644
--- a/jellyfin_kodi/jellyfin/ws_client.py
+++ b/jellyfin_kodi/jellyfin/ws_client.py
@@ -10,6 +10,10 @@ from kodi_six import xbmc
 
 from helper import LazyLogger
 
+# If numpy is installed, the websockets library tries to use it, and then
+# kodi hard crashes for reasons I don't even want to pretend to understand
+import sys
+sys.modules['numpy'] = None
 import websocket
 
 ##################################################################################################