$Id$
Copyright © 2010 VideoLAN and AUTHORS
-
+
Authors: Fabio Ritrovato <sephiroth87 at videolan dot org>
This program is free software; you can redistribute it and/or modify
end
function main()
- local fd = vlc.stream( "http://mafreebox.freebox.fr/freeboxtv/playlist.m3u" )
+ local fd, msg = vlc.stream( "http://mafreebox.freebox.fr/freeboxtv/playlist.m3u" )
+ if not fd then
+ vlc.msg.warn(msg)
+ return nil
+ end
local line= fd:readline()
if line ~= "#EXTM3U" then
return nil
_, _, option = string.find( line, ":(.+)" )
table.insert( options, option )
else
- vlc.sd.add_item( {url=line,duration=duration,artist=artist,title=name,options=options} )
+ vlc.sd.add_item( {path=line,duration=duration,artist=artist,title=name,options=options} )
duration = nil
artist = nil
name = nil