Compare commits
No commits in common. "1dca96d8f1511fb3769a4436fed82dfc18d02596" and "4daa0cbbfea7f5bfa60840d0b047639cfd98cb6a" have entirely different histories.
1dca96d8f1
...
4daa0cbbfe
2
music.py
Normal file → Executable file
2
music.py
Normal file → Executable file
@ -54,7 +54,7 @@ def inlinequery(update, context: CallbackContext):
|
||||
|
||||
if query:
|
||||
sp_info = sp.search(q=query, limit=num_results)
|
||||
for i in range(len(sp_info)):
|
||||
for i in range(num_results):
|
||||
sp_title = util.get(sp_info, f"/tracks/items/[{i}]/name")
|
||||
sp_artist = util.get(sp_info, f"/tracks/items/[{i}]/artists/[0]/name")
|
||||
sp_albname = util.get(sp_info, f"/tracks/items/[{i}]/album/name")
|
||||
|
Loading…
x
Reference in New Issue
Block a user