From 60a2036f4a1b4e311bfd2ff8a7a6ed451d46efc7 Mon Sep 17 00:00:00 2001 From: stabbedbybrick <125766685+stabbedbybrick@users.noreply.github.com> Date: Wed, 30 Oct 2024 08:42:32 +0100 Subject: [PATCH] fix(TUBI): Fix language attribute --- services/TUBI/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/TUBI/__init__.py b/services/TUBI/__init__.py index 2535e85..0a6bf6f 100644 --- a/services/TUBI/__init__.py +++ b/services/TUBI/__init__.py @@ -141,7 +141,7 @@ class TUBI(Service): number=int(episode["episode_number"]), name=episode["title"].split("-")[1], year=data["year"], - language=Language.find(episode.get("lang", "en")).to_alpha3(), + language=Language.find(episode.get("lang") or "en").to_alpha3(), data=episode, ) for season in data["children"]