]> git.sesse.net Git - vlc/commitdiff
add artist to lua-script also
authorIlkka Ollakka <ileoo@videolan.org>
Sun, 19 Aug 2007 15:56:55 +0000 (15:56 +0000)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 19 Aug 2007 15:56:55 +0000 (15:56 +0000)
modules/meta_engine/luameta.c

index c6fb311775d9f92d78a58d12cd4819b751a8a0cc..311ae3443a89bca4d6a10da0557e1a1779751630 100644 (file)
@@ -269,6 +269,11 @@ static lua_State * vlclua_meta_init( vlc_object_t *p_this, input_item_t * p_item
     lua_setfield( p_state, lua_gettop( p_state ) - 1, "name" );
     free( psz_meta );
    
     lua_setfield( p_state, lua_gettop( p_state ) - 1, "name" );
     free( psz_meta );
    
+    psz_meta = input_item_GetArtist( p_item );
+    lua_pushstring( p_state, psz_meta );
+    lua_setfield( p_state, lua_gettop( p_state ) - 1, "artist" );
+    free( psz_meta );
+   
     psz_meta = input_item_GetTitle( p_item ) ;
     lua_pushstring( p_state, psz_meta );
     lua_setfield( p_state, lua_gettop( p_state ) - 1, "title" );
     psz_meta = input_item_GetTitle( p_item ) ;
     lua_pushstring( p_state, psz_meta );
     lua_setfield( p_state, lua_gettop( p_state ) - 1, "title" );