Fix exception on insert
This commit is contained in:
parent
328d268a71
commit
8ff1b544b7
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ class Playlist:
|
|||
position = len(self.waiting)
|
||||
self.waiting.append(element)
|
||||
return position
|
||||
elif position >= 0:
|
||||
elif before >= 0:
|
||||
self.waiting.insert(before, element)
|
||||
return before
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue