diff --git a/librespot/core.py b/librespot/core.py index 27e8c8c..a03e2e9 100644 --- a/librespot/core.py +++ b/librespot/core.py @@ -1111,7 +1111,11 @@ class Session(Closeable, MessageListener, SubListener): sha1 = SHA1.new() sha1.update(device_id.encode()) secret = sha1.digest() - base_key = PBKDF2(secret, username.encode(), 20, 0x100, hmac_hash_module=SHA1) + base_key = PBKDF2(secret, + username.encode(), + 20, + 0x100, + hmac_hash_module=SHA1) sha1 = SHA1.new() sha1.update(base_key) key = sha1.digest() + b"\x00\x00\x00\x14"