Skip to content

Commit 4b768f7

Browse files
committed
#172 Fix album request
1 parent e65f7fc commit 4b768f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

librespot/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def from_uri(uri: str) -> AlbumId:
114114
matcher = AlbumId.pattern.search(uri)
115115
if matcher is not None:
116116
album_id = matcher.group(1)
117-
return AlbumId(util.bytes_to_hex(AlbumId.base62.decode(album_id.encode())))
117+
return AlbumId(util.bytes_to_hex(AlbumId.base62.decode(album_id.encode(), 16)))
118118
raise TypeError("Not a Spotify album ID: {}.".format(uri))
119119

120120
@staticmethod

0 commit comments

Comments
 (0)