{"info", SIMPLE_CONTENT, {NULL} },
{"location", SIMPLE_CONTENT, {NULL} },
{"identifier", SIMPLE_CONTENT, {NULL} },
- {"image", SIMPLE_CONTENT, {NULL} },
+ {"image", SIMPLE_CONTENT, {.smpl = set_item_info} },
{"date", SIMPLE_CONTENT, {NULL} },
{"license", SIMPLE_CONTENT, {NULL} },
{"attribution", COMPLEX_CONTENT, {.cmplx = skip_element} },
{"creator", SIMPLE_CONTENT, {.smpl = set_item_info} },
{"annotation", SIMPLE_CONTENT, {.smpl = set_item_info} },
{"info", SIMPLE_CONTENT, {NULL} },
- {"image", SIMPLE_CONTENT, {NULL} },
+ {"image", SIMPLE_CONTENT, {.smpl = set_item_info} },
{"album", SIMPLE_CONTENT, {.smpl = set_item_info} },
{"trackNum", SIMPLE_CONTENT, {.smpl = set_item_info} },
{"duration", SIMPLE_CONTENT, {.smpl = set_item_info} },
/* handle each info element in a separate "if" clause */
if( !strcmp( psz_name, "title" ) )
{
- p_input->psz_name = strdup( (char*)psz_value );
+ input_item_SetTitle( p_input, psz_value );
}
else if( !strcmp( psz_name, "creator" ) )
{
{
input_item_SetDescription( p_input, psz_value );
}
+ else if( !strcmp( psz_name, "image" ) )
+ {
+ input_item_SetArtURL( p_input, psz_value );
+ }
return VLC_TRUE;
}
}
/* -> the name/title (only if different from uri)*/
- char *psz_name = input_item_GetName( p_item->p_input );
+ char *psz_name = input_item_GetTitle( p_item->p_input );
if( psz_name && psz_uri && strcmp( psz_uri, psz_name ) )
{
psz_temp = convert_xml_special_chars( psz_name );
}
free( psz_temp );
+ psz = input_item_GetArtURL( p_item->p_input );
+ if( !EMPTY_STR( psz ) )
+ {
+ fprintf( p_file, "\t\t\t<image>%s</image>\n", psz );
+ }
+ free( psz );
+
xspfexportitem_end:
/* -> the duration */
i_duration = input_item_GetDuration( p_item->p_input );