forked from Dniel97/artemis
dx: fix GetUserRivalMusicApi list index out of range
This commit is contained in:
parent
8b03f1a4f1
commit
319aea098f
@ -600,6 +600,8 @@ class Mai2DX(Mai2Base):
|
|||||||
num_user_songs = len(songs)
|
num_user_songs = len(songs)
|
||||||
|
|
||||||
for x in range(next_index, upper_lim):
|
for x in range(next_index, upper_lim):
|
||||||
|
if x >= num_user_songs:
|
||||||
|
break
|
||||||
|
|
||||||
tmp = songs[x]._asdict()
|
tmp = songs[x]._asdict()
|
||||||
if tmp['musicId'] in rival_music_list:
|
if tmp['musicId'] in rival_music_list:
|
||||||
|
Loading…
Reference in New Issue
Block a user