[vlc-commits] [Git][videolan/vlc][master] podcast: Expose some information as input_item metadata
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Jun 23 05:43:03 UTC 2022
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
c3ab95b2 by Hugo Beauzée-Luyssen at 2022-06-23T05:26:16+00:00
podcast: Expose some information as input_item metadata
The input item's info aren't accessible through libvlc
- - - - -
1 changed file:
- modules/demux/playlist/podcast.c
Changes:
=====================================
modules/demux/playlist/podcast.c
=====================================
@@ -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 )
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c3ab95b2cb9e3a1dd75f558116367e2ce3f9d5aa
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c3ab95b2cb9e3a1dd75f558116367e2ce3f9d5aa
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list