- vlc_meta_SetTitle( p_input->input.p_item->p_meta,
- psz_value );
- p_input->input.p_item->psz_name = strdup( psz_value );
+ if( !strcasecmp( psz_name, "artist" ) )
+ input_item_SetArtist( p_item, psz_value );
+ else if( !strcasecmp( psz_name, "title" ) )
+ {
+ input_item_SetTitle( p_item, psz_value );
+ p_item->psz_name = strdup( psz_value );
+ }
+ else if( !strcasecmp( psz_name, "album" ) )
+ {
+ input_item_SetAlbum( p_item, psz_value );
+ }
+ else if( !strcasecmp( psz_name, "musicbrainz_trackid" ) )
+ input_item_SetTrackID( p_item, psz_value );
+#if 0 //not used
+ else if( !strcasecmp( psz_name, "musicbrainz_artistid" ) )
+ vlc_meta_SetArtistID( p_item, psz_value );
+ else if( !strcasecmp( psz_name, "musicbrainz_albumid" ) )
+ input_item_SetAlbumID( p_item, psz_value );
+#endif