Hi,
i’m working on a script in python to control the music box.
Can i call the method play() of playback controller with only tlid or i have to always pass even the tltrack?
Thanks
The answer is that you should supply neither tlid
nor tltrack
or either tlid
or tltrack
, but not both. If you supply both tlid
and tltrack
you will get an error .
Please note that with this sort of simple API question you have three options:
-
Read the extensive documentation (for the version of Mopidy you are using):
https://docs.mopidy.com/en/release-1.1/api/core/#mopidy.core.PlaybackController.play -
Read the source code (for the version of Mopidy you are using):
https://github.com/mopidy/mopidy/blob/v1.1.2/mopidy/core/playback.py#L295 -
Try it and see!