[vlc-devel] [PATCH 4/4] FreeboxTV discovery: do not show when the TV playlist is not available

Rafaël Carré funman at videolan.org
Thu Nov 14 20:07:54 CET 2013


---
 share/lua/sd/freebox.lua | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/share/lua/sd/freebox.lua b/share/lua/sd/freebox.lua
index add48d6..51994ea 100644
--- a/share/lua/sd/freebox.lua
+++ b/share/lua/sd/freebox.lua
@@ -21,6 +21,11 @@
 --]]
 
 function descriptor()
+    fd, msg = vlc.stream( "http://mafreebox.freebox.fr/freeboxtv/playlist.m3u" )
+    if not fd then
+        vlc.msg.warn(msg)
+        return nil
+    end
     return { title="Freebox TV" }
 end
 
-- 
1.8.3.2




More information about the vlc-devel mailing list