[vlc-commits] joox.lua: Remove joox script
Marvin Scholz
git at videolan.org
Tue Oct 25 21:55:09 CEST 2016
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Tue Oct 25 20:27:22 2016 +0200| [5cd6c287824cd3168d259fe0967bef273ea83787] | committer: Rémi Denis-Courmont
joox.lua: Remove joox script
Remove the joox script as the website (joox.net) it
was written for is gone.
Ref. #17488
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5cd6c287824cd3168d259fe0967bef273ea83787
---
share/Makefile.am | 2 --
share/lua/playlist/joox.lua | 45 ---------------------------------------------
2 files changed, 47 deletions(-)
diff --git a/share/Makefile.am b/share/Makefile.am
index ecd7cda..291d090 100644
--- a/share/Makefile.am
+++ b/share/Makefile.am
@@ -145,7 +145,6 @@ nobase_vlclib_DATA = \
lua/playlist/extreme.luac \
lua/playlist/france2.luac \
lua/playlist/jamendo.luac \
- lua/playlist/joox.luac \
lua/playlist/katsomo.luac \
lua/playlist/koreus.luac \
lua/playlist/lelombrik.luac \
@@ -237,7 +236,6 @@ EXTRA_DIST += \
lua/playlist/extreme.lua \
lua/playlist/france2.lua \
lua/playlist/jamendo.lua \
- lua/playlist/joox.lua \
lua/playlist/katsomo.lua \
lua/playlist/koreus.lua \
lua/playlist/lelombrik.lua \
diff --git a/share/lua/playlist/joox.lua b/share/lua/playlist/joox.lua
deleted file mode 100644
index 9ce15cd..0000000
--- a/share/lua/playlist/joox.lua
+++ /dev/null
@@ -1,45 +0,0 @@
---[[
- $Id$
-
- Copyright © 2007 the VideoLAN team
-
- 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.
---]]
-
--- Probe function.
-function probe()
- return vlc.access == "http"
- and string.match( vlc.path, "joox.net" ) or
- string.match( vlc.path, "/iframe.php%?video=1&" )
-end
-
--- Parse function.
-function parse()
- vidtitle = ""
- while true do
- line = vlc.readline()
- if not line then break end
- if string.match( line, "iframe" ) then
- -- extract the iframe
- print((string.gsub( line, ".*iframe src=\"([^\"]*).*", "%1" ) ))
- return { { path = (string.gsub( line, ".*iframe src=\"([^\"]*).*", "%1" )) } }
- end
- if string.match( line, "<param name=\"src" ) then
- -- extract the video url from the iframe
- print( (string.gsub( line, ".*src\" value=\"([^\"]*).*", "%1" )))
- return { { path = (string.gsub( line, ".*src\" value=\"([^\"]*).*", "%1" )) } }
- end
- end
-end
More information about the vlc-commits
mailing list