From df369e42c26f2ae36c81a712582cfa4d92708129 Mon Sep 17 00:00:00 2001
From: stabbedbybrick <125766685+stabbedbybrick@users.noreply.github.com>
Date: Sun, 14 Apr 2024 09:22:28 +0200
Subject: [PATCH] fix(ROKU): Filter unwanted search results

---
 services/ROKU/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/services/ROKU/__init__.py b/services/ROKU/__init__.py
index 8efcc43..afa0f60 100644
--- a/services/ROKU/__init__.py
+++ b/services/ROKU/__init__.py
@@ -76,9 +76,9 @@ class ROKU(Service):
 
         results = r.json()
         for result in results["view"]:
-            if not result["content"]["type"] == "zone":
+            if result["content"]["type"] not in ["zone", "provider"]:
                 _id = result["content"].get("meta", {}).get("id")
-                _desc = result["content"].get("descriptions")
+                _desc = result["content"].get("descriptions", {})
 
                 label = f'{result["content"].get("type")} ({result["content"].get("releaseYear")})'
                 if result["content"].get("viewOptions"):