@@ -37,7 +37,7 @@ def read(
3737 """Reads the TOC from the device given as string
3838 and returns a :class:`Disc` object.
3939
40- That string can be either of :obj:`str <python:str>` or :obj:`bytes`.
40+ The device string can be either of :obj:`str <python:str>` or :obj:`bytes`.
4141 However, it should in no case contain non-ASCII characters.
4242 If no device is given, a default, also given by :func:`get_default_device`
4343 is used.
@@ -50,6 +50,9 @@ def read(
5050 A :exc:`DiscError` exception is raised when the reading fails,
5151 and :exc:`NotImplementedError` when libdiscid doesn't support
5252 reading discs on the current platform.
53+
54+ :param device: the device name to use or :obj:`None` for using the default device
55+ :param features: list of features to enable ("read" will always be assumed)
5356 """
5457 disc = Disc ()
5558 disc .read (device , features )
@@ -60,17 +63,18 @@ def put(first: int, last: int, disc_sectors: int, track_offsets: list[int]) -> "
6063 """Creates a TOC based on the information given
6164 and returns a :class:`Disc` object.
6265
63- Takes the `first` track and `last` **audio** track as :obj:`int`.
64- `disc_sectors` is the end of the last audio track,
65- normally the total sector count of the disc.
66- `track_offsets` is a list of all audio track offsets.
67-
6866 Depending on how you get the total sector count,
6967 you might have to subtract 11400 (2:32 min.) for discs with data tracks.
7068
7169 A :exc:`TOCError` exception is raised when illegal parameters
7270 are provided.
7371
72+ :param first: number of the first audio track
73+ :param last: number of the last audio track
74+ :param disc_sectors: the end of the last audio track, normally the total
75+ sector count of the disc
76+ :param track_offsets: list of all audio track offsets
77+
7478 .. seealso:: :musicbrainz:`Disc ID Calculation`
7579 """
7680 disc = Disc ()
0 commit comments