From e20f85d648082e27409f0673596e670eb3abab09 Mon Sep 17 00:00:00 2001 From: Antoine Cellerier Date: Tue, 11 Sep 2007 21:16:03 +0000 Subject: [PATCH] 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. --- modules/access/http.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/access/http.c b/modules/access/http.c index efbdbd6881..1a278d75b1 100644 --- a/modules/access/http.c +++ b/modules/access/http.c @@ -93,6 +93,7 @@ vlc_module_begin(); add_shortcut( "http" ); add_shortcut( "https" ); add_shortcut( "unsv" ); + add_shortcut( "itpc" ); /* iTunes Podcast */ set_callbacks( Open, Close ); vlc_module_end(); @@ -399,6 +400,10 @@ connect: /* Grrrr! detect ultravox server and force NSV demuxer */ 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 && !strncasecmp( p_sys->psz_mime, "application/xspf+xml", 20 ) && ( memchr( " ;\t", p_sys->psz_mime[20], 4 ) != NULL ) ) -- 2.39.2