From 07d86efb676fc417c2c11a65065db40f4c4ce9d6 Mon Sep 17 00:00:00 2001 From: lekma Date: Tue, 15 Oct 2024 06:24:30 +0100 Subject: [PATCH] v3.2.6 --- addon.xml | 2 +- lib/invidious/session.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addon.xml b/addon.xml index a6a81fd..525f4cb 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/lib/invidious/session.py b/lib/invidious/session.py index 40361b4..e9e1952 100644 --- a/lib/invidious/session.py +++ b/lib/invidious/session.py @@ -59,7 +59,7 @@ def __error__(self, result, notify=True): return (False, result) def __get__(self, url, notify=True, **kwargs): - if (response := self.get(url, notify=notify, params=kwargs)): + if ((response := self.get(url, notify=notify, params=kwargs)) is not None): notified, result = self.__error__(response.json(), notify=notify) try: response.raise_for_status()