Metalove v0.2.2 Metalove.Enclosure View Source

Defines a Metalove.Enclosure struct representing enclosures in Metalove.Episodes. Provides access to parsed metadata.

Link to this section Summary

Types

t()

Representation of an Enclosure

Functions

Fetch enough of the URL to parse the ID3 metadata if present

Link to this section Types

Link to this type

t() View Source
t() :: %Metalove.Enclosure{
  created_at: DateTime.t(),
  fetched_metadata_at: DateTime.t(),
  metadata: nil | map(),
  size: nil | non_neg_integer(),
  type: String.t(),
  url: String.t()
}

Representation of an Enclosure.

Interesting fields:

  • metadata a map of found metadata, interesting keys are chapters and cover_art

Link to this section Functions

Fetch enough of the URL to parse the ID3 metadata if present.

Link to this function

fetch_metadata(enclosure) View Source