MediaType¶
Media Type constants.
-
class
yael.mediatype.
MediaType
[source]¶ Enumeration of Media Type constants.
See the source code for the complete list.
-
static
is_audio
(media_type)[source]¶ Determine if the given Media Type is associated with an audio format.
Parameters: media_type (str) – a Media Type string Returns: True if media_type starts with audio/
-
static
is_content_document
(media_type)[source]¶ Determine if the given Media Type is associated with an EPUB Content Document.
Parameters: media_type (str) – a Media Type string Returns: True if media_type is a format listed in CONTENT_DOCUMENTS
-
static
is_font
(media_type)[source]¶ Determine if the given Media Type is associated with a font format.
Parameters: media_type (str) – a Media Type string Returns: True if media_type is a format listed in FONTS
-
static