]> git.sesse.net Git - vlc/commitdiff
Replace Freebox and French TV SD from shout.c with lua scripts
authorFabio Ritrovato <sephiroth87@videolan.org>
Sun, 14 Feb 2010 20:09:16 +0000 (21:09 +0100)
committerFabio Ritrovato <sephiroth87@videolan.org>
Sun, 14 Feb 2010 20:09:16 +0000 (21:09 +0100)
They should work fine, but I can't test them from here...

share/lua/sd/freebox.lua [new file with mode: 0644]
share/lua/sd/frenchtv.lua [new file with mode: 0644]

diff --git a/share/lua/sd/freebox.lua b/share/lua/sd/freebox.lua
new file mode 100644 (file)
index 0000000..b1e3cd1
--- /dev/null
@@ -0,0 +1,26 @@
+--SD_Description=Freebox TV
+--[[
+ $Id$
+
+ Copyright © 2010 the VideoLAN team
+ Authors: Fabio Ritrovato <sephiroth87 at videolan dot org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+--]]
+
+function main()
+    vlc.sd.add_item( {url="http://mafreebox.freebox.fr/freeboxtv/playlist.m3u",options={"deinterlace=1"}} )
+end
diff --git a/share/lua/sd/frenchtv.lua b/share/lua/sd/frenchtv.lua
new file mode 100644 (file)
index 0000000..6e7c005
--- /dev/null
@@ -0,0 +1,29 @@
+--SD_Description=French TV
+--[[
+ $Id$
+
+ Copyright © 2010 the VideoLAN team
+ Authors: Fabio Ritrovato <sephiroth87 at videolan dot org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+--]]
+
+function main()
+    node = vlc.sd.add_node( {title="Canal +"} )
+    node:add_subitem( {title="Le SAV des émissions ",url="http://www.canalplus.fr/index.php?pid=1782",options={"http-forward-cookies"}} )
+    node:add_subitem( {title="Les Guignols",url="http://www.canalplus.fr/index.php?pid=1784",options={"http-forward-cookies"}} )
+    node:add_subitem( {title="La Météo de Pauline Lefevre",url="http://www.canalplus.fr/index.php?pid=2834",options={"http-forward-cookies"}} )
+end