]> git.sesse.net Git - vlc/commitdiff
LUA: synchronise meta with the core
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 11 Jul 2012 08:44:40 +0000 (10:44 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 11 Jul 2012 08:46:46 +0000 (10:46 +0200)
modules/lua/libs/input.c
modules/lua/libs/sd.c

index 0fb2e728aefe897cacdf57ce2374fff0e591bac2..9e1942c6bd75dd482f07fd8ee9afaf35b8528397 100644 (file)
@@ -145,6 +145,7 @@ static int vlclua_input_metas_internal( lua_State *L, input_item_t *p_item )
         PUSH_META( EncodedBy, "encoded_by" );
         PUSH_META( ArtworkURL, "artwork_url" );
         PUSH_META( TrackID, "track_id" );
+        PUSH_META( TrackTotal, "track_total" );
 
 #undef PUSH_META
 
@@ -341,6 +342,7 @@ static int vlclua_input_item_set_meta( lua_State *L )
         META_TYPE( EncodedBy, "encoded_by" )
         META_TYPE( ArtworkURL, "artwork_url" )
         META_TYPE( TrackID, "track_id" )
+        META_TYPE( TrackTotal, "track_total" )
     };
 #undef META_TYPE
 
index fd9c385da3222bbce8599b2f1701e350a9b28d1e..fe5fbb720f10417e56cc328dd3b7c91655bbb86c 100644 (file)
@@ -91,6 +91,7 @@ vlclua_item_meta(publisher, Publisher)
 vlclua_item_meta(encodedby, EncodedBy)
 vlclua_item_meta(arturl, ArtworkURL)
 vlclua_item_meta(trackid, TrackID)
+vlclua_item_meta(tracktotal, TrackTotal)
 
 static const luaL_Reg vlclua_item_reg[] = {
     vlclua_item_luareg(title)
@@ -110,6 +111,7 @@ static const luaL_Reg vlclua_item_reg[] = {
     vlclua_item_luareg(encodedby)
     vlclua_item_luareg(arturl)
     vlclua_item_luareg(trackid)
+    vlclua_item_luareg(tracktotal)
     { NULL, NULL }
 };