spotifywebapipython.zeroconfapi.zeroconfgetinfodrmmediaformat

@export
class ZeroconfGetInfoDrmMediaFormat:

Spotify Zeroconf API GetInfo DRM Media Format object.

ZeroconfGetInfoDrmMediaFormat(root: dict = None)

Initializes a new instance of the class.

Arguments:
  • root (dict): Spotify Web API JSON response in dictionary format, used to load object attributes; otherwise, None to not load attributes.
Drm: int

DRM format which the integration supports (SpDrmFormat).

kSpDrmFormatUnknown Unknown DRM. kSpDrmFormatUnencrypted No DRM, unencrypted. kSpDrmFormatFairPlay FairPlay. kSpDrmFormatWidevine Widevine. kSpDrmFormatPlayReady PlayReady.

Formats: int

Supported media formats for a DRM.

def ToDictionary(self) -> dict:

Returns a dictionary representation of the class.

def ToString(self, includeTitle: bool = False) -> str:

Returns a displayable string representation of the class.

Arguments:
  • includeTitle (str): True to include the class name title prefix.