From 6b65a792d5e16a6e55dda35753bd42c641fe6787 Mon Sep 17 00:00:00 2001 From: Lukas Winkler Date: Wed, 3 Aug 2022 16:04:11 +0200 Subject: [PATCH] try to avoid more spotify issues --- spotify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotify.py b/spotify.py index dc6be2a..5348782 100644 --- a/spotify.py +++ b/spotify.py @@ -76,7 +76,7 @@ for song in query.limit(limit): try: results = sp.search(q=searchtitle + ' ' + searchartist, type='track', limit=1) except SpotifyException: - if len(searchtitle) > 40: + if len(searchtitle + ' ' + searchartist) > 50: song.spotify_data = False song.save() continue