1
0
Fork 0
mirror of https://github.com/Findus23/RadioStats.git synced 2024-09-18 14:53:47 +02:00

try to avoid more spotify issues

This commit is contained in:
Lukas Winkler 2022-08-03 16:04:11 +02:00
parent 38c018ca2d
commit 6b65a792d5
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -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