This module contains higher level classes to query Musixmatch API and build simple dictionary-like objects representing a track subtitle.
>>> from musixmatch.subtitle import Subtitle
>>> import musixmatch.api
>>>
>>> try:
... subtitle = Subtitle(subtitle_id=292)
... except musixmatch.api.Error, e:
... pass
Bases: musixmatch.base.Item
This class builds a dict object representing a subtitle of a track. It can get subtitle through the musixmatch.api.Method track.subtitle.get or from an already well-formed dict. Create a Track object based on a given keyword argument:
Parameters: |
|
---|---|
Raises : | musixmatch.api.Error if musixmatch.api.StatusCode is not 200 |
Once information are collected, the following keys are available:
Parameters: |
|
---|