[vlc-devel] [PATCH] M3U playlist detection

bl4 bl4 at playker.info
Sun Jun 15 03:35:28 CEST 2008


vlc always detects m3u playlist if it starts with #EXTINFO. However, 
some m3u playlists are simple lists of urls (one url per line). These 
are parsed only if file extension is .m3u, .vlc, .ram or .rm.

With this patch the m3u module checks if the content looks like valid 
m3u. If it finds a line with a url starting with http://, mms:// or 
rtsp://, it parses the playlist regardless of extension.

I made this patch because I wanted to play Yahoo Launchcast which sends 
m3u playlists without #EXTINFO or .m3u extension. vlc doesn't detect 
that it's m3u and doesn't parse it.

Here's an example (not sure how long this url will be valid though):
http://lcp.mud.us.music.yahoo.com/p.svt?action=get&u=813429053&sf=1&y=1355&d=813429053&p=1&m=7318647&g=0&c=1049601&ai=0&si=396500046&gsi=396500212&sk=48D186B33503E48542035&ln=us&r=0&sg=1213472791&eg=5htMs.dlhI8My4ecNS89bA&n=83-0.asp

I know it's a minor issue and Launchcast is wmp-only but I'm sending 
this patch in case you find it any useful.

-- 
bl4

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-M3U-playlist-detection.patch
Type: text/x-patch
Size: 2698 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080615/f9ec346d/attachment.bin>


More information about the vlc-devel mailing list