Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
434
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
c3ab95b2
Commit
c3ab95b2
authored
2 years ago
by
Hugo Beauzée-Luyssen
Committed by
Steve Lhomme
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
podcast: Expose some information as input_item metadata
The input item's info aren't accessible through libvlc
parent
a753099c
No related branches found
Branches containing commit
No related tags found
Loading
Pipeline
#234232
passed with stage
Stage:
in 16 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/demux/playlist/podcast.c
+11
-3
11 additions, 3 deletions
modules/demux/playlist/podcast.c
with
11 additions
and
3 deletions
modules/demux/playlist/podcast.c
+
11
−
3
View file @
c3ab95b2
...
...
@@ -304,15 +304,23 @@ static int ReadDir( stream_t *p_demux, input_item_node_t *p_subitems )
input_item_AddInfo( p_input, _( "Podcast Info" ), (info), "%s", \
(field) ); \
FREENULL( field ); }
ADD_INFO
(
_
(
"Podcast Publication Date"
),
psz_item_date
);
ADD_INFO
(
_
(
"Podcast Author"
),
psz_item_author
);
#define ADD_INFO_META( info, field, meta ) \
if( field ) { \
input_item_AddInfo( p_input, _( "Podcast Info" ), (info), "%s", \
(field) ); \
input_item_SetMeta( p_input, (meta), field ); \
FREENULL( field ); }
ADD_INFO_META
(
_
(
"Podcast Publication Date"
),
psz_item_date
,
vlc_meta_Date
);
ADD_INFO_META
(
_
(
"Podcast Author"
),
psz_item_author
,
vlc_meta_Artist
);
ADD_INFO
(
_
(
"Podcast Subcategory"
),
psz_item_category
);
ADD_INFO
(
_
(
"Podcast Duration"
),
psz_item_duration
);
ADD_INFO
(
_
(
"Podcast Keywords"
),
psz_item_keywords
);
ADD_INFO
(
_
(
"Podcast Subtitle"
),
psz_item_subtitle
);
ADD_INFO
(
_
(
"Podcast Summary"
),
psz_item_summary
);
ADD_INFO
_META
(
_
(
"Podcast Summary"
),
psz_item_summary
,
vlc_meta_Description
);
ADD_INFO
(
_
(
"Podcast Type"
),
psz_item_type
);
#undef ADD_INFO
#undef ADD_INFO_META
/* Add the global art url to this item, if any */
if
(
psz_art_url
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment