fix(ROKU): Filter unwanted search results

This commit is contained in:
stabbedbybrick 2024-04-14 09:22:28 +02:00
parent 4248684ea5
commit df369e42c2

View File

@ -76,9 +76,9 @@ class ROKU(Service):
results = r.json() results = r.json()
for result in results["view"]: 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") _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")})' label = f'{result["content"].get("type")} ({result["content"].get("releaseYear")})'
if result["content"].get("viewOptions"): if result["content"].get("viewOptions"):