1
0
mirror of synced 2024-11-24 06:20:10 +01:00

mai2: GetUserMusicApi hotfix

This commit is contained in:
Kevin Trocolli 2023-06-13 22:10:35 -04:00
parent 5ca16f2067
commit 5a35b1c823

View File

@ -660,6 +660,7 @@ class Mai2Base:
upper_lim = next_index + max_ct
num_user_songs = len(songs)
for x in range(next_index, upper_lim):
if num_user_songs >= x:
break
@ -669,7 +670,7 @@ class Mai2Base:
tmp.pop("user")
music_detail_list.append(tmp)
next_index = 0 if len(music_detail_list) < max_ct else upper_lim
next_index = 0 if len(music_detail_list) < max_ct or num_user_songs == upper_lim else upper_lim
return {
"userId": data["userId"],
"nextIndex": next_index,