bosesoundtouchapi.models.trackinfo

@export
class TrackInfo:

SoundTouch device TrackInfo configuration object.

This class contains the attributes and sub-items that represent the TrackInfo configuration of the device.

TrackInfo(root: xml.etree.ElementTree.Element = None)

Initializes a new instance of the class.

Arguments:
  • root (Element): xmltree Element item to load arguments from.
    If specified, then other passed arguments are ignored.
DeviceId: str

Device ID that the configuration was obtained from.

TrackInfo: str

Track information value.

This information can differ slightly from the NowPlaying "Track" information, as it contains the track name plus extended details about the track. The extended details are delimited by a semi-colon; a semi-colon is still present after the track name if there is no extended data present. For example(s):

Who You Are To Me (feat. Lady A);vocal duets;upbeat lyrics;paired vocal harmony;  
A Marshmallow World;  <- no extended track info
def ToString(self) -> str:

Returns a displayable string representation of the class.