| Mex Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
void mex_metadata_from_uri (const gchar *uri,gchar **title,gchar **showname,GDate **date,gint *season,gint *episode); gchar * mex_metadata_humanise_duration (const gchar *duration); gchar * mex_metadata_humanise_date (const gchar *iso8601_date); gchar * mex_metadata_humanise_time (const gchar *time); void mex_metadata_get_metadata (GList **metadata_template,MexContent *content); MexMetadataInfo * mex_metadata_info_new (MexContentMetadata key,const gchar *key_string,gint priority); void mex_metadata_info_free (MexMetadataInfo *info);
void mex_metadata_from_uri (const gchar *uri,gchar **title,gchar **showname,GDate **date,gint *season,gint *episode);
gchar * mex_metadata_humanise_duration (const gchar *duration);
Gives a human readable version of the duration
|
duration in seconds |
Returns : |
Human friendly version of duration or NULL
|
gchar * mex_metadata_humanise_date (const gchar *iso8601_date);
Parses the date string given and outputs human friendly version
|
iso8601 date string dd-mm-yyyyThh:mm:ssZ |
Returns : |
Human friendly version of date or NULL
|
void mex_metadata_get_metadata (GList **metadata_template,MexContent *content);
Fills in the values for the GList of MexMetadataInfo using the priority value to provide fall back metadata. Where the highest priority is 0.
|
A GList with MexMetadataInfo data |
MexMetadataInfo * mex_metadata_info_new (MexContentMetadata key,const gchar *key_string,gint priority);
Container to pass through mex_metadata_get_metadata
|
Metadata key |
|
A field label for the metadata value |
|
How important this metadata is. 0 = High |
Returns : |
a new MexMetadataInfo. |