Commit e20f85d6 authored by Antoine Cellerier's avatar Antoine Cellerier

Add support for "iTunes podcast" (example:...

Add support for "iTunes podcast" (example: itpc://www.apple.com/trailers/home/podcasts/pc-2314.xml) which is basically http with a different access name.
parent f464bb35
...@@ -93,6 +93,7 @@ vlc_module_begin(); ...@@ -93,6 +93,7 @@ vlc_module_begin();
add_shortcut( "http" ); add_shortcut( "http" );
add_shortcut( "https" ); add_shortcut( "https" );
add_shortcut( "unsv" ); add_shortcut( "unsv" );
add_shortcut( "itpc" ); /* iTunes Podcast */
set_callbacks( Open, Close ); set_callbacks( Open, Close );
vlc_module_end(); vlc_module_end();
...@@ -399,6 +400,10 @@ connect: ...@@ -399,6 +400,10 @@ connect:
/* Grrrr! detect ultravox server and force NSV demuxer */ /* Grrrr! detect ultravox server and force NSV demuxer */
p_access->psz_demux = strdup( "nsv" ); p_access->psz_demux = strdup( "nsv" );
} }
else if( !strcmp( p_access->psz_access, "itpc" ) )
{
p_access->psz_demux = strdup( "podcast" );
}
else if( p_sys->psz_mime && else if( p_sys->psz_mime &&
!strncasecmp( p_sys->psz_mime, "application/xspf+xml", 20 ) && !strncasecmp( p_sys->psz_mime, "application/xspf+xml", 20 ) &&
( memchr( " ;\t", p_sys->psz_mime[20], 4 ) != NULL ) ) ( memchr( " ;\t", p_sys->psz_mime[20], 4 ) != NULL ) )
......
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