A <url> entry of a urlset, validated and normalized by new/2.
Options
:lastmod-DateTime,NaiveDateTime(treated as UTC),Dateor ISO 8601 string. Omitted whennil; it never defaults to the current time.:changefreq- one ofalways hourly daily weekly monthly yearly never(atom or string).:priority- a number between0.0and1.0, written with one decimal.:images/:image- one image or a list (up to 1,000). Keys::loc(required) and the deprecated:caption,:title,:licenseand:geo_location.:videos/:video- one video or a list. Keys::thumbnail_loc,:title,:description(required),:content_locand/or:player_loc(one is required),:allow_embed,:autoplay(a string such as"ap=1"),:duration,:expiration_date,:rating,:view_count,:publication_date,:tags(a string or list of strings, up to 32),:family_friendly,:restriction(%{relationship: :allow | :deny, countries: ["US", ..]}, ISO 3166 codes in upper case),:platform(%{relationship: :allow | :deny, platforms: [:web | :mobile | :tv]}),:requires_subscription,:uploader,:uploader_info,:liveand the deprecated:category,:gallery_loc,:gallery_titleand:price(%{value: .., currency: "USD", type: :rent | :purchase, resolution: :hd | :sd}, one or a list;:valueis a non-negative decimal that requires:currency, and without it:typeis required). Booleans are three-state:nilleaves the element out,true/falsewriteyes/no.:news-:publication_name,:publication_language(ISO 639 code of 2 or 3 lower case letters, orzh-cn/zh-tw),:title,:publication_date(required) and the deprecated:access,:genres,:keywordsand:stock_tickers.:alternates/:alternate- one or a list of%{href: .., lang: .., media: .., nofollow: bool}, written as<xhtml:link rel="alternate">.:mobile- deprecated,truewrites<mobile:mobile/>.:pagemap- deprecated,%{dataobjects: [%{type: .., id: .., attributes: [%{name: .., value: ..}]}]}.
Invalid values raise ArgumentError.
Summary
Functions
Applies fun to every URL-valued nested field: image :loc and :license, video :thumbnail_loc,
:content_loc, :player_loc, :gallery_loc and :uploader_info, and alternate :href.
The entry loc itself is left untouched.
Builds a validated URL entry. See the module documentation for the options.
Whether the entry carries <news:news>.
Types
@type changefreq() ::
:always | :hourly | :daily | :weekly | :monthly | :yearly | :never
Functions
Applies fun to every URL-valued nested field: image :loc and :license, video :thumbnail_loc,
:content_loc, :player_loc, :gallery_loc and :uploader_info, and alternate :href.
The entry loc itself is left untouched.
Builds a validated URL entry. See the module documentation for the options.
Whether the entry carries <news:news>.