From fbc078ed1a532543ba1345dad0622e1270223908 Mon Sep 17 00:00:00 2001 From: kokarare1212 Date: Tue, 25 May 2021 13:52:56 +0900 Subject: [PATCH] Fix cdn expiration error --- librespot/audio/cdn/CdnManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librespot/audio/cdn/CdnManager.py b/librespot/audio/cdn/CdnManager.py index 080bdde..79404ba 100644 --- a/librespot/audio/cdn/CdnManager.py +++ b/librespot/audio/cdn/CdnManager.py @@ -157,8 +157,8 @@ class CdnManager: except ValueError: continue - if s[0][:i] == "exp": - expire_at = int(s[0][i + 1:]) + if s[:i] == "exp": + expire_at = int(s[i + 1:]) break if expire_at is None: