Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
ccca9bec
Commit
ccca9bec
authored
Feb 06, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the new metadata to lua code
parent
7c7948db
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
5 deletions
+30
-5
modules/lua/libs/input.c
modules/lua/libs/input.c
+10
-0
modules/lua/libs/sd.c
modules/lua/libs/sd.c
+10
-0
modules/lua/vlc.c
modules/lua/vlc.c
+10
-5
No files found.
modules/lua/libs/input.c
View file @
ccca9bec
...
@@ -152,6 +152,11 @@ static int vlclua_input_metas_internal( lua_State *L, input_item_t *p_item )
...
@@ -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
(
ArtworkURL
,
"artwork_url"
);
PUSH_META
(
TrackID
,
"track_id"
);
PUSH_META
(
TrackID
,
"track_id"
);
PUSH_META
(
TrackTotal
,
"track_total"
);
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
#undef PUSH_META
...
@@ -349,6 +354,11 @@ static int vlclua_input_item_set_meta( lua_State *L )
...
@@ -349,6 +354,11 @@ static int vlclua_input_item_set_meta( lua_State *L )
META_TYPE
(
ArtworkURL
,
"artwork_url"
)
META_TYPE
(
ArtworkURL
,
"artwork_url"
)
META_TYPE
(
TrackID
,
"track_id"
)
META_TYPE
(
TrackID
,
"track_id"
)
META_TYPE
(
TrackTotal
,
"track_total"
)
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
#undef META_TYPE
...
...
modules/lua/libs/sd.c
View file @
ccca9bec
...
@@ -91,6 +91,11 @@ vlclua_item_meta(encodedby, EncodedBy)
...
@@ -91,6 +91,11 @@ vlclua_item_meta(encodedby, EncodedBy)
vlclua_item_meta
(
arturl
,
ArtworkURL
)
vlclua_item_meta
(
arturl
,
ArtworkURL
)
vlclua_item_meta
(
trackid
,
TrackID
)
vlclua_item_meta
(
trackid
,
TrackID
)
vlclua_item_meta
(
tracktotal
,
TrackTotal
)
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
[]
=
{
static
const
luaL_Reg
vlclua_item_reg
[]
=
{
vlclua_item_luareg
(
title
)
vlclua_item_luareg
(
title
)
...
@@ -111,6 +116,11 @@ static const luaL_Reg vlclua_item_reg[] = {
...
@@ -111,6 +116,11 @@ static const luaL_Reg vlclua_item_reg[] = {
vlclua_item_luareg
(
arturl
)
vlclua_item_luareg
(
arturl
)
vlclua_item_luareg
(
trackid
)
vlclua_item_luareg
(
trackid
)
vlclua_item_luareg
(
tracktotal
)
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
}
{
NULL
,
NULL
}
};
};
...
...
modules/lua/vlc.c
View file @
ccca9bec
...
@@ -379,12 +379,17 @@ void vlclua_read_meta_data( vlc_object_t *p_this, lua_State *L,
...
@@ -379,12 +379,17 @@ void vlclua_read_meta_data( vlc_object_t *p_this, lua_State *L,
TRY_META
(
"date"
,
Date
);
TRY_META
(
"date"
,
Date
);
TRY_META
(
"setting"
,
Setting
);
TRY_META
(
"setting"
,
Setting
);
TRY_META
(
"url"
,
URL
);
TRY_META
(
"url"
,
URL
);
TRY_META
(
"language"
,
Language
);
TRY_META
(
"language"
,
Language
);
TRY_META
(
"nowplaying"
,
NowPlaying
);
TRY_META
(
"nowplaying"
,
NowPlaying
);
TRY_META
(
"publisher"
,
Publisher
);
TRY_META
(
"publisher"
,
Publisher
);
TRY_META
(
"encodedby"
,
EncodedBy
);
TRY_META
(
"encodedby"
,
EncodedBy
);
TRY_META
(
"arturl"
,
ArtURL
);
TRY_META
(
"arturl"
,
ArtURL
);
TRY_META
(
"trackid"
,
TrackID
);
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
#undef vlclua_read_custom_meta_data
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment