From 56fd16e64226aea98e29dccbd37e789ac60e4bdd Mon Sep 17 00:00:00 2001 From: kokarare1212 Date: Fri, 21 May 2021 12:49:35 +0900 Subject: [PATCH] Fix CDN expiration method Bug --- 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 a964669..f2b358a 100644 --- a/librespot/audio/cdn/CdnManager.py +++ b/librespot/audio/cdn/CdnManager.py @@ -129,12 +129,12 @@ class CdnManager: split = token_str.split("~") for s in split: try: - i = s[0].index("=") + i = s.index("=") except ValueError: continue if s[0][:i] == "exp": - expire_at = int(s[0][i:]) + expire_at = int(s[0][i + 1:]) break if expire_at is None: