#2142·mopidy

Switching between multiple music sources in the queue is buggy in several ways

Author: PureTryOutCreated Nov 30, 2023Updated Sep 14, 2026

Describe the bug When playing audio from e.g. a Spotify source and then switching to a different source (in my case Soundcloud or Youtube) is buggy. Buggy meaning either the current track will be played on repeat rather than switching to the next track in the queue, the music stops playing entirely, or Mopidy fails to play any track and it removes every track it encounters any error at (which at that point is every track, after each other) from the queue.

How to reproduce Make a queue of tracks from multiple sources. In my case the primary source of music is Spotify so start with that, then a track from either Soundcloud or Youtube.

Expected behaviour The next track to play, as a listener not noticing that the source of music has changed.

Environment Please complete the following information:

  • Operating system: Docker container using the Iris image, which is Debian Bullseye
  • Running Mopidy as a service or in the terminal? Service, Docker
  • Your config (output of sudo mopidyctl config): You can't get root rights in the used Docker image, but the config file used is as follows:
[core]
data_dir = /var/lib/mopidy

[local]
enabled = false
media_dir = /var/lib/mopidy/media

[audio]
output = alsasink device=rate48000Hz

[m3u]
enabled = true
playlists_dir = /var/lib/mopidy/playlists

[http]
hostname = 0.0.0.0
default_app = iris

[mpd]
enabled = false

[spotify]
enabled = true
client_id = <redacted>
client_secret = <redacted>
username = <redacted>
password = <redacted>
private_session = true
allow_playlists = false

[youtube]
enabled = true
youtube_dl_package = yt_dlp
autoplay_enabled = false

[soundcloud]
enabled = true
auth_token = <redacted>

[pandora]
enabled = false

[tidal]
enabled = false

[ytmusic]
enabled = false
  • Software versions (output of sudo mopidyctl deps) Due to not having root rights in the Docker container I can not give this information.
  • Any specific hardware (e.g. an exotic USB soundcard) No but audio is played through an alsasink to a Snapcast server.