FeedReader.Media (FeedReader v0.3.0)

Copy Markdown

A format-neutral media resource.

url, kind, and role are required. The parser uses :image, :audio, :video, or :unknown for kind, and :content, :thumbnail, :enclosure, :icon, or :logo for role.

mime_type and title are optional strings. width and height are optional non-negative integers. Optional fields default to nil.

Summary

Types

t()

@type t() :: %FeedReader.Media{
  height: non_neg_integer() | nil,
  kind: :image | :audio | :video | :unknown,
  mime_type: String.t() | nil,
  role: :content | :thumbnail | :enclosure | :icon | :logo,
  title: String.t() | nil,
  url: String.t(),
  width: non_neg_integer() | nil
}