Commit 06112acd authored by Felix Paul Kühne's avatar Felix Paul Kühne

podcast: be more tolerant with faulty feeds, so just ignore invalid items...

podcast: be more tolerant with faulty feeds, so just ignore invalid items instead of refusing to the list the entire feed (close #8970)
parent 25f3ab15
......@@ -230,8 +230,24 @@ static int Demux( demux_t *p_demux )
{
if( psz_item_mrl == NULL )
{
msg_Err( p_demux, "invalid XML (no enclosure markup)" );
goto error;
if (psz_item_name)
msg_Warn( p_demux, "invalid XML item, skipping %s",
psz_item_name );
else
msg_Warn( p_demux, "invalid XML item, skipped" );
FREENULL( psz_item_name );
FREENULL( psz_item_size );
FREENULL( psz_item_type );
FREENULL( psz_item_date );
FREENULL( psz_item_author );
FREENULL( psz_item_category );
FREENULL( psz_item_duration );
FREENULL( psz_item_keywords );
FREENULL( psz_item_subtitle );
FREENULL( psz_item_summary );
FREENULL( psz_art_url );
FREENULL( psz_elname );
continue;
}
p_input = input_item_New( psz_item_mrl, psz_item_name );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment