From 4b768f7c71304d0390bf2e77f6c49a847d9dcddb Mon Sep 17 00:00:00 2001 From: kokarare1212 Date: Tue, 3 Jan 2023 10:22:23 +0900 Subject: [PATCH] #172 Fix album request --- librespot/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librespot/metadata.py b/librespot/metadata.py index 413117f..a5e01e9 100644 --- a/librespot/metadata.py +++ b/librespot/metadata.py @@ -114,7 +114,7 @@ class AlbumId(SpotifyId): matcher = AlbumId.pattern.search(uri) if matcher is not None: album_id = matcher.group(1) - return AlbumId(util.bytes_to_hex(AlbumId.base62.decode(album_id.encode()))) + return AlbumId(util.bytes_to_hex(AlbumId.base62.decode(album_id.encode(), 16))) raise TypeError("Not a Spotify album ID: {}.".format(uri)) @staticmethod