Metalove v0.2.2 Metalove.Enclosure View Source
Defines a Metalove.Enclosure
struct representing enclosures in Metalove.Episode
s. Provides access to parsed metadata.
Link to this section Summary
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()
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()
}
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 arechapters
andcover_art
Link to this section Functions
Link to this function
fetch_id3_metadata(url) View Source
Fetch enough of the URL to parse the ID3 metadata if present.
Link to this function
fetch_metadata(enclosure) View Source
Link to this function