From 84a43bed3d9091a65f13f29daeee6c24e647a20b Mon Sep 17 00:00:00 2001 From: Denis Date: Sat, 24 Apr 2021 17:39:52 +0700 Subject: [PATCH] Fix AttributeError --- librespot/core/Session.py | 2 +- librespot/metadata/ShowId.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/librespot/core/Session.py b/librespot/core/Session.py index 79f1276..7519503 100644 --- a/librespot/core/Session.py +++ b/librespot/core/Session.py @@ -987,7 +987,7 @@ class Session(Closeable, SubListener, DealerClient.MessageListener): self.session._scheduledReconnect) def anonymous(): - self._LOGGER.warning( + self.session._LOGGER.warning( "Socket timed out. Reconnecting...") self.session._reconnect() diff --git a/librespot/metadata/ShowId.py b/librespot/metadata/ShowId.py index 41a823f..e14ec8a 100644 --- a/librespot/metadata/ShowId.py +++ b/librespot/metadata/ShowId.py @@ -7,7 +7,7 @@ from librespot.common import Utils from librespot.metadata import SpotifyId -class ShowId(SpotifyId.SpotifyId): +class ShowId(SpotifyId): _PATTERN = re.compile("spotify:show:(.{22})") _BASE62 = Base62.create_instance_with_inverted_character_set() _hexId: str