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()