Play one song then stop

I would like to have a GPIO pin play one song on the playlist and then stop and go to the next.

Is there a way to add a parameter to

self.core.playback.play()

Such that it would stop after the song is finished?

https://docs.mopidy.com/en/latest/api/core/#mopidy.core.TracklistController.get_single

I am not comprehending how the tracklist controller can be used here.

But if I could get the tracklist to load a random song and set it to single mode prior to the gpio pinpressing play, that would accomplish what I’m trying to do.

Is there anywhere where I could see some examples?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.