MythTV
master
|
Public Member Functions | |
def | __init__ (self) |
def | __str__ (self) |
def | read (self, device=None, features=[]) |
def | put (self, first, last, disc_sectors, track_offsets) |
def | id (self) |
def | freedb_id (self) |
def | submission_url (self) |
def | toc_string (self) |
def | first_track_num (self) |
def | last_track_num (self) |
def | sectors (self) |
def | seconds (self) |
def | mcn (self) |
def | tracks (self) |
def | __enter__ (self) |
def | __exit__ (self, exc_type, exc_value, traceback) |
def | __del__ (self) |
Static Public Attributes | |
argtypes | |
restype | |
def | length = sectors |
Private Member Functions | |
def | _get_error_msg (self) |
def | _get_id (self) |
def | _get_freedb_id (self) |
def | _get_submission_url (self) |
def | _get_toc_string (self) |
def | _get_first_track_num (self) |
def | _get_last_track_num (self) |
def | _get_sectors (self) |
def | _get_mcn (self) |
def | _free (self) |
Private Attributes | |
_handle | |
_success | |
_requested_features | |
The class of the object returned by :func:`read` or :func:`put`.
def discid.disc.Disc.__init__ | ( | self | ) |
|
private |
Get the error message for the last error with the object.
Definition at line 113 of file disc.py.
Referenced by discid.disc.Disc.put(), and discid.disc.Disc.read().
def discid.disc.Disc.read | ( | self, | |
device = None , |
|||
features = [] |
|||
) |
def discid.disc.Disc.put | ( | self, | |
first, | |||
last, | |||
disc_sectors, | |||
track_offsets | |||
) |
|
private |
Gets the current MusicBrainz disc ID
Definition at line 182 of file disc.py.
Referenced by discid.disc.Disc.id().
|
private |
Gets the current FreeDB disc ID
Definition at line 191 of file disc.py.
Referenced by discid.disc.Disc.freedb_id().
|
private |
Give an URL to submit the current TOC as a new Disc ID to MusicBrainz.
Definition at line 200 of file disc.py.
Referenced by discid.disc.Disc.submission_url().
|
private |
The TOC suitable as value of the `toc parameter` when accessing the MusicBrainz Web Service.
Definition at line 213 of file disc.py.
Referenced by discid.disc.Disc.toc_string().
|
private |
Gets the first track number
Definition at line 227 of file disc.py.
Referenced by discid.disc.Disc.first_track_num().
|
private |
Gets the last track number
Definition at line 235 of file disc.py.
Referenced by discid.disc.Disc.last_track_num().
|
private |
Gets the total number of sectors on the disc
Definition at line 243 of file disc.py.
Referenced by discid.disc.Disc.sectors().
|
private |
Gets the current Media Catalogue Number (MCN/UPC/EAN)
Definition at line 254 of file disc.py.
Referenced by discid.disc.Disc.mcn().
def discid.disc.Disc.id | ( | self | ) |
This is the MusicBrainz :musicbrainz:`Disc ID`, a :obj:`unicode` or :obj:`str <python:str>` object.
Definition at line 270 of file disc.py.
Referenced by discid.disc.Disc.__str__().
def discid.disc.Disc.freedb_id | ( | self | ) |
def discid.disc.Disc.submission_url | ( | self | ) |
Disc ID / TOC Submission URL for MusicBrainz With this url you can submit the current TOC as a new MusicBrainz :musicbrainz:`Disc ID`. This is a :obj:`unicode` or :obj:`str <python:str>` object.
Definition at line 284 of file disc.py.
Referenced by discid.disc.Disc.toc_string().
def discid.disc.Disc.toc_string | ( | self | ) |
The TOC suitable as value of the `toc parameter` when accessing the MusicBrainz Web Service. This is a :obj:`unicode` or :obj:`str <python:str>` object and enables fuzzy searching when the actual Disc ID is not found. Note that this is the unencoded value, which still contains spaces. .. seealso:: `MusicBrainz Web Service <http://musicbrainz.org/doc/Development/XML_Web_Service/Version_2#discid>`_
def discid.disc.Disc.first_track_num | ( | self | ) |
Number of the first track
Definition at line 325 of file disc.py.
Referenced by discid.disc.Disc.tracks().
def discid.disc.Disc.last_track_num | ( | self | ) |
Number of the last **audio** track
Definition at line 330 of file disc.py.
Referenced by discid.disc.Disc.tracks().
def discid.disc.Disc.sectors | ( | self | ) |
Total length in sectors
Definition at line 335 of file disc.py.
Referenced by discid.track.Track.seconds(), and discid.disc.Disc.seconds().
def discid.disc.Disc.seconds | ( | self | ) |
def discid.disc.Disc.mcn | ( | self | ) |
def discid.disc.Disc.tracks | ( | self | ) |
|
private |
def discid.disc.Disc.__enter__ | ( | self | ) |
def discid.disc.Disc.__exit__ | ( | self, | |
exc_type, | |||
exc_value, | |||
traceback | |||
) |
|
private |
Definition at line 102 of file disc.py.
Referenced by discid.disc.Disc._free(), discid.disc.Disc._get_error_msg(), discid.disc.Disc._get_first_track_num(), discid.disc.Disc._get_freedb_id(), discid.disc.Disc._get_id(), discid.disc.Disc._get_last_track_num(), discid.disc.Disc._get_mcn(), discid.disc.Disc._get_sectors(), discid.disc.Disc._get_submission_url(), discid.disc.Disc._get_toc_string(), discid.disc.Disc.put(), and discid.disc.Disc.read().
|
private |
Definition at line 103 of file disc.py.
Referenced by discid.disc.Disc.__str__(), discid.disc.Disc._get_first_track_num(), discid.disc.Disc._get_freedb_id(), discid.disc.Disc._get_id(), discid.disc.Disc._get_last_track_num(), discid.disc.Disc._get_mcn(), discid.disc.Disc._get_sectors(), discid.disc.Disc._get_submission_url(), discid.disc.Disc._get_toc_string(), discid.disc.Disc.put(), discid.disc.Disc.read(), and discid.disc.Disc.tracks().
|
private |
Definition at line 104 of file disc.py.
Referenced by discid.disc.Disc._get_mcn(), discid.disc.Disc.put(), and discid.disc.Disc.read().