mirror of
https://github.com/RafaelSolVargas/Vulkan.git
synced 2025-10-29 16:57:23 +00:00
[Fix] - Command remove with -1 as argument
This commit is contained in:
parent
c23d4c13cb
commit
cbd8ed45f9
@ -175,7 +175,10 @@ class Playlist(IPlaylist):
|
|||||||
return config.ERROR_MOVING
|
return config.ERROR_MOVING
|
||||||
|
|
||||||
def remove_song(self, position) -> str:
|
def remove_song(self, position) -> str:
|
||||||
if position not in range(1, len(self.__queue) + 1) and position != -1:
|
if position == -1:
|
||||||
|
position = len(self.__queue)
|
||||||
|
|
||||||
|
if position not in range(1, len(self.__queue) + 1):
|
||||||
return config.LENGTH_ERROR
|
return config.LENGTH_ERROR
|
||||||
else:
|
else:
|
||||||
song = self.__queue[position-1]
|
song = self.__queue[position-1]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user