From 264e0a38610c98e1a9b7d0680c9bdf96b2bf28b4 Mon Sep 17 00:00:00 2001 From: Bram Neijt Date: Sun, 3 Apr 2022 22:07:19 +0200 Subject: [PATCH] Indentation --- ipfs_video_kodi/ipfs/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ipfs_video_kodi/ipfs/__init__.py b/ipfs_video_kodi/ipfs/__init__.py index 6ef9cd6..fd9f6dc 100644 --- a/ipfs_video_kodi/ipfs/__init__.py +++ b/ipfs_video_kodi/ipfs/__init__.py @@ -52,7 +52,11 @@ def resolve_ipns(self, cid): def list(self, path): """Get the directory content of the given path (ipns/hash or plain cid)""" assert type(path) == str, "Argument path must be a string" - cid = self.resolve_ipns(path[len("/ipns/") :]) if path.startswith("/ipns/") else path + cid = ( + self.resolve_ipns(path[len("/ipns/") :]) + if path.startswith("/ipns/") + else path + ) if cid in self._cache: if len(self._cache) > MAX_CACHE_SIZE: