Module z_media_import

Import media from internet locations.

Copyright © 2014-2021 Marc Worrell

Authors: Marc Worrell (marc@worrell.nl).

Description

Import media from internet locations.

Function Index

insert/2Insert a selected #media_import_props{}.
insert/3Insert a selected #media_import_props{}, add the forced properties to the resource.
update/3Update a resource with the selected #media_import_props().
url_import_props/2Find possible rsc/medium mappings for the url or fetched url metadata.

Function Details

insert/2

insert(Media_import_props::#media_import_props{}, Context::z:context()) -> {ok, m_rsc:resource_id()} | {error, term()}

Insert a selected #media_import_props{}

insert/3

insert(Media_import_props::#media_import_props{}, RscProps::map(), Context::z:context()) -> {ok, m_rsc:resource_id()} | {error, term()}

Insert a selected #media_import_props{}, add the forced properties to the resource.

update/3

update(RscId, Media_import_props, Context) -> any()

Update a resource with the selected #media_import_props()

url_import_props/2

url_import_props(Url::z_url_metadata:metadata() | string() | binary(), Context::z:context()) -> {ok, [#media_import_props{}]} | {error, term()}

Find possible rsc/medium mappings for the url or fetched url metadata


Generated by EDoc