musixmatch.subtitle.Subtitle Class Reference
Inheritance diagram for musixmatch.subtitle.Subtitle:
Inheritance graph
Collaboration diagram for musixmatch.subtitle.Subtitle:
Collaboration graph

Static Private Attributes

 __api_method__ = track.subtitle.get
 

Additional Inherited Members

- Public Member Functions inherited from musixmatch.base.Item
def __init__ (self, dictionary=None, keywords)
 
def __str__ (self)
 
def __repr__ (self)
 
def __hash__ (self)
 
def fromResponseMessage (cls, message)
 
def fromDictionary (cls, dictionary, keywords)
 
def __init__ (self, dictionary=None, keywords)
 
def __str__ (self)
 
def __repr__ (self)
 
def __hash__ (self)
 
def fromResponseMessage (cls, message)
 
def fromDictionary (cls, dictionary, keywords)
 
def __init__ (self, dictionary=None, keywords)
 
def __str__ (self)
 
def __repr__ (self)
 
def __hash__ (self)
 
def fromResponseMessage (cls, message)
 
def fromDictionary (cls, dictionary, keywords)
 
def __init__ (self, dictionary=None, keywords)
 
def __str__ (self)
 
def __repr__ (self)
 
def __hash__ (self)
 
def fromResponseMessage (cls, message)
 
def fromDictionary (cls, dictionary, keywords)
 
- Public Member Functions inherited from musixmatch.base.Base
def label (cls)
 
def apiMethod (cls)
 
def __str__ (self)
 
def __repr__ (self)
 
def label (cls)
 
def apiMethod (cls)
 
def __str__ (self)
 
def __repr__ (self)
 
def label (cls)
 
def apiMethod (cls)
 
def __str__ (self)
 
def __repr__ (self)
 
def label (cls)
 
def apiMethod (cls)
 
def __str__ (self)
 
def __repr__ (self)
 

Detailed Description

This class builds a :py:class:`dict` object representing a subtitle of a
track. It can get subtitle through the :py:class:`musixmatch.api.Method`
**track.subtitle.get** or from an already well-formed :py:class:`dict`.
Create a Track object based on a given keyword argument:

:param track_id: musiXmatch track ID
:param musicbrainz_id: Musicbrainz track ID
:param track_echonest_id: Echonest track ID
:param subtitle_data: an already well-formed :py:class:`dict` of track data
:raises: :py:class:`musixmatch.api.Error` if :py:class:`musixmatch.api.StatusCode` is not 200

Once information are collected, the following keys are available:

:keyword subtitle_body: the subtitle text
:keyword subtitle_id: the Musixmatch subtitle id
:keyword subtitle_language: the subtitle language

Definition at line 20 of file musixmatch-master/build/lib/musixmatch/subtitle.py.

Field Documentation

musixmatch.subtitle.Subtitle.__api_method__ = track.subtitle.get
staticprivate

The documentation for this class was generated from the following file: