- psz_item_name = strdup( psz_text );
- }
- else if( b_item == VLC_TRUE
- && ( !strcmp( psz_elname, "itunes:author" )
- ||!strcmp( psz_elname, "author" ) ) )
- { /* <author> isn't standard iTunes podcast stuff */
- psz_item_author = strdup( psz_text );
- }
- else if( b_item == VLC_TRUE
- && ( !strcmp( psz_elname, "itunes:summary" )
- ||!strcmp( psz_elname, "description" ) ) )
- { /* <description> isn't standard iTunes podcast stuff */
- psz_item_summary = strdup( psz_text );
+ if( !strcmp( psz_elname, "title" ) )
+ {
+ psz_item_name = psz_text;
+ }
+ else if( !strcmp( psz_elname, "itunes:author" ) ||
+ !strcmp( psz_elname, "author" ) )
+ { /* <author> isn't standard iTunes podcast stuff */
+ psz_item_author = psz_text;
+ }
+ else if( !strcmp( psz_elname, "itunes:summary" ) ||
+ !strcmp( psz_elname, "description" ) )
+ { /* <description> isn't standard iTunes podcast stuff */
+ psz_item_summary = psz_text;
+ }
+ SET_DATA( psz_item_date, "pubDate" )
+ SET_DATA( psz_item_category, "itunes:category" )
+ SET_DATA( psz_item_duration, "itunes:duration" )
+ SET_DATA( psz_item_keywords, "itunes:keywords" )
+ SET_DATA( psz_item_subtitle, "itunes:subtitle" )
+ else
+ free( psz_text );