Reads the TOC from the device given as string
and returns a :class:`Disc` object.
That string can be either of:
:obj:`str <python:str>`, :obj:`unicode` or :obj:`bytes`.
However, it should in no case contain non-ASCII characters.
If no device is given, a default, also given by :func:`get_default_device`
is used.
You can optionally add a subset of the features in
:data:`FEATURES` or the whole list to read more than just the TOC.
In contrast to libdiscid, :func:`read` won't read any
of the additional features by default.
A :exc:`DiscError` exception is raised when the reading fails,
and :exc:`NotImplementedError` when libdiscid doesn't support
reading discs on the current platform.
Definition at line 35 of file disc.py.
Referenced by avi_read_index(), MediaMonitorUnix.CheckDeviceNotifications(), MythCDROMLinux.checkMedia(), hardwareprofile.os_detect.OSWithFile.do_test(), get_avi_from_index(), baidu.lyricsScraper.LyricsFetcher.get_lyrics(), hardwareprofile.distros.mythtv_data.uuiddb._UuidDb.get_pub_uuid(), LIRC.GetCodes(), MythDVDInfo.GetNameAndSerialNum(), AudioInputOSS.GetSamples(), getsize(), ExternIO.GetStatus(), MythSystemLegacyIOHandler.HandleRead(), SignalHandler.handleSignal(), lirc_nextcode(), lirc_read_string(), hardwareprofile.MultipartPostHandler.main(), MythFileRead(), MythFileBuffer.OpenFile(), DeviceReadBuffer.Poll(), MythWebSocket.Read(), ExternIO.Read(), RemoteFile.Read(), read_avi_header(), hardwareprofile.smolt.read_cpuinfo(), ZMClient.readData(), ring_write_file(), MpegRecorder.run(), DeviceReadBuffer.run(), JoystickMenuThread.run(), DVBStreamHandler.RunSR(), DVBStreamHandler.RunTS(), V4LRecorder.RunVBIDevice(), safe_read(), MythFileBuffer.SafeRead(), save_read(), V4L2encStreamHandler.StartEncoding(), MpegRecorder.StartEncoding(), hardwareprofile.os_detect.get_os_info.ubuntu(), vbi_handler(), and MythHTTPSocket.Write().