mirror of
https://github.com/videolan/vlc.git
synced 2024-12-14 12:14:42 +08:00
Add the new metadata to lua code
This commit is contained in:
parent
7c7948dba0
commit
ccca9becbf
@ -152,6 +152,11 @@ static int vlclua_input_metas_internal( lua_State *L, input_item_t *p_item )
|
||||
PUSH_META( ArtworkURL, "artwork_url" );
|
||||
PUSH_META( TrackID, "track_id" );
|
||||
PUSH_META( TrackTotal, "track_total" );
|
||||
PUSH_META( Director, "director" );
|
||||
PUSH_META( Season, "season" );
|
||||
PUSH_META( Episode, "episode" );
|
||||
PUSH_META( ShowName, "show_name" );
|
||||
PUSH_META( Actors, "actors" );
|
||||
|
||||
#undef PUSH_META
|
||||
|
||||
@ -349,6 +354,11 @@ static int vlclua_input_item_set_meta( lua_State *L )
|
||||
META_TYPE( ArtworkURL, "artwork_url" )
|
||||
META_TYPE( TrackID, "track_id" )
|
||||
META_TYPE( TrackTotal, "track_total" )
|
||||
META_TYPE( Director, "director" )
|
||||
META_TYPE( Season, "season" )
|
||||
META_TYPE( Episode, "episode" )
|
||||
META_TYPE( ShowName, "show_name" )
|
||||
META_TYPE( Actors, "actors" )
|
||||
};
|
||||
#undef META_TYPE
|
||||
|
||||
|
@ -91,6 +91,11 @@ vlclua_item_meta(encodedby, EncodedBy)
|
||||
vlclua_item_meta(arturl, ArtworkURL)
|
||||
vlclua_item_meta(trackid, TrackID)
|
||||
vlclua_item_meta(tracktotal, TrackTotal)
|
||||
vlclua_item_meta(director , Director )
|
||||
vlclua_item_meta(season , Season )
|
||||
vlclua_item_meta(episode , Episode )
|
||||
vlclua_item_meta(showname , ShowName )
|
||||
vlclua_item_meta(actors , Actors )
|
||||
|
||||
static const luaL_Reg vlclua_item_reg[] = {
|
||||
vlclua_item_luareg(title)
|
||||
@ -111,6 +116,11 @@ static const luaL_Reg vlclua_item_reg[] = {
|
||||
vlclua_item_luareg(arturl)
|
||||
vlclua_item_luareg(trackid)
|
||||
vlclua_item_luareg(tracktotal)
|
||||
vlclua_item_luareg(director )
|
||||
vlclua_item_luareg(season )
|
||||
vlclua_item_luareg(episode )
|
||||
vlclua_item_luareg(showname )
|
||||
vlclua_item_luareg(actors )
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
|
@ -379,12 +379,17 @@ void vlclua_read_meta_data( vlc_object_t *p_this, lua_State *L,
|
||||
TRY_META( "date", Date );
|
||||
TRY_META( "setting", Setting );
|
||||
TRY_META( "url", URL );
|
||||
TRY_META( "language", Language );
|
||||
TRY_META( "language", Language );
|
||||
TRY_META( "nowplaying", NowPlaying );
|
||||
TRY_META( "publisher", Publisher );
|
||||
TRY_META( "encodedby", EncodedBy );
|
||||
TRY_META( "arturl", ArtURL );
|
||||
TRY_META( "trackid", TrackID );
|
||||
TRY_META( "publisher", Publisher );
|
||||
TRY_META( "encodedby", EncodedBy );
|
||||
TRY_META( "arturl", ArtURL );
|
||||
TRY_META( "trackid", TrackID );
|
||||
TRY_META( "director", Director );
|
||||
TRY_META( "season", Season );
|
||||
TRY_META( "episode", Episode );
|
||||
TRY_META( "show_name", ShowName );
|
||||
TRY_META( "actors", Actors );
|
||||
}
|
||||
|
||||
#undef vlclua_read_custom_meta_data
|
||||
|
Loading…
Reference in New Issue
Block a user