Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions music_assistant/providers/plex_connect/player_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,8 @@ async def handle_refresh_play_queue(self, request: web.Request) -> web.Response:
This is called when the play queue is modified (items added, removed, reordered).
We need to sync the entire updated queue state to MA while preserving playback.
"""
# Set flag to prevent circular updates
self._updating_from_plex = True
try:
play_queue_id = request.query.get("playQueueID")

Expand Down Expand Up @@ -955,6 +957,8 @@ def fetch_queue() -> PlayQueue:
except Exception as e:
LOGGER.exception(f"Error handling refreshPlayQueue: {e}")
return web.Response(status=500, text=str(e))
finally:
self._updating_from_plex = False

async def handle_create_play_queue(self, request: web.Request) -> web.Response:
"""
Expand Down
Loading