mirror of
https://github.com/Findus23/RadioStats.git
synced 2024-09-19 16:03:48 +02:00
try to avoid more spotify issues
This commit is contained in:
parent
38c018ca2d
commit
6b65a792d5
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ for song in query.limit(limit):
|
||||||
try:
|
try:
|
||||||
results = sp.search(q=searchtitle + ' ' + searchartist, type='track', limit=1)
|
results = sp.search(q=searchtitle + ' ' + searchartist, type='track', limit=1)
|
||||||
except SpotifyException:
|
except SpotifyException:
|
||||||
if len(searchtitle) > 40:
|
if len(searchtitle + ' ' + searchartist) > 50:
|
||||||
song.spotify_data = False
|
song.spotify_data = False
|
||||||
song.save()
|
song.save()
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue