Comments
This commit is contained in:
parent
a1ee1d9a8d
commit
ed63b37c3e
4
main3.py
4
main3.py
@ -40,7 +40,7 @@ def list_music():
|
||||
def download(data):
|
||||
url = data['youtube_url']
|
||||
# ... existing download logic ...
|
||||
emit('download_status', {'status': 'success', 'message': 'Song added successfully'})
|
||||
emit('download_status', {'status': 'success', 'message': 'Song added successfully'}) # Add song ID to response
|
||||
|
||||
@socketio.on('play')
|
||||
def play(data):
|
||||
@ -57,7 +57,7 @@ def get_queue():
|
||||
|
||||
@socketio.on('remove_from_queue')
|
||||
def remove_from_queue(data):
|
||||
song_id = int(data['songId'])
|
||||
song_id = int(data['songId']) # Use queue index instead
|
||||
# ... existing remove logic ...
|
||||
emit('remove_status', {'status': 'success', 'message': 'Song removed successfully'})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user