From d2a20afcd776a48537cdf43b989b4401f7823d07 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Sat, 3 Nov 2007 14:28:52 +0000 Subject: [PATCH] lua: adds a copyright notice and a GPLv2+ header to each lua script authors: feel free to change to the licence you want, and to add yourself to the Authors list additionnally, adds break.lua to its Makefile.am --- share/Makefile.am | 1 + share/luameta/googleimage.lua | 22 ++++++++++++++++++++-- share/luaplaylist/appletrailers.lua | 23 +++++++++++++++++++---- share/luaplaylist/break.lua | 20 +++++++++++++++++++- share/luaplaylist/dailymotion.lua | 20 ++++++++++++++++++-- share/luaplaylist/googlevideo.lua | 20 +++++++++++++++++++- share/luaplaylist/lelombrik.lua | 23 +++++++++++++++++++++-- share/luaplaylist/metacafe.lua | 20 +++++++++++++++++++- share/luaplaylist/youtube.lua | 22 +++++++++++++++++++++- share/luaplaylist/youtube_homepage.lua | 22 ++++++++++++++++++++-- 10 files changed, 177 insertions(+), 16 deletions(-) diff --git a/share/Makefile.am b/share/Makefile.am index 34d16110ce..85b39b3c0f 100644 --- a/share/Makefile.am +++ b/share/Makefile.am @@ -250,6 +250,7 @@ DIST_lua= \ luameta/README.txt \ luameta/googleimage.lua \ luaplaylist/README.txt \ + luaplaylist/break.lua \ luaplaylist/dailymotion.lua \ luaplaylist/lelombrik.lua \ luaplaylist/youtube.lua \ diff --git a/share/luameta/googleimage.lua b/share/luameta/googleimage.lua index f3d565f8af..32d6d59794 100644 --- a/share/luameta/googleimage.lua +++ b/share/luameta/googleimage.lua @@ -1,5 +1,23 @@ --- Get's an artwork from images.google.com --- $Id$ +--[[ + Gets an artwork from images.google.com + + $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. +--]] -- Replace non alphanumeric char by + function get_query( title ) diff --git a/share/luaplaylist/appletrailers.lua b/share/luaplaylist/appletrailers.lua index 3297f91864..5a754aea1e 100644 --- a/share/luaplaylist/appletrailers.lua +++ b/share/luaplaylist/appletrailers.lua @@ -1,8 +1,23 @@ --- $Id$ - --[[ - Translate trailers.apple.com video webpages URLs to the corresponding - movie URL + Translate trailers.apple.com video webpages URLs to the corresponding + movie URL + + $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. diff --git a/share/luaplaylist/break.lua b/share/luaplaylist/break.lua index da6ae18855..1c18a0c867 100644 --- a/share/luaplaylist/break.lua +++ b/share/luaplaylist/break.lua @@ -1,4 +1,22 @@ --- $Id$ +--[[ + $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() diff --git a/share/luaplaylist/dailymotion.lua b/share/luaplaylist/dailymotion.lua index 41fe1087d5..659b51a41e 100644 --- a/share/luaplaylist/dailymotion.lua +++ b/share/luaplaylist/dailymotion.lua @@ -1,8 +1,24 @@ --- $Id$ - --[[ Translate Daily Motion video webpages URLs to the corresponding FLV URL. + + $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. diff --git a/share/luaplaylist/googlevideo.lua b/share/luaplaylist/googlevideo.lua index 49ead9fa68..57cc281b8a 100644 --- a/share/luaplaylist/googlevideo.lua +++ b/share/luaplaylist/googlevideo.lua @@ -1,4 +1,22 @@ --- $Id$ +--[[ + $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() diff --git a/share/luaplaylist/lelombrik.lua b/share/luaplaylist/lelombrik.lua index 8002ce7205..82fb472280 100644 --- a/share/luaplaylist/lelombrik.lua +++ b/share/luaplaylist/lelombrik.lua @@ -1,5 +1,24 @@ --- $Id$ --- French humor site: http://lelombrik.net +--[[ + French humor site: http://lelombrik.net + + $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() diff --git a/share/luaplaylist/metacafe.lua b/share/luaplaylist/metacafe.lua index 30b176b9a1..b7ceb3e851 100644 --- a/share/luaplaylist/metacafe.lua +++ b/share/luaplaylist/metacafe.lua @@ -1,4 +1,22 @@ --- $Id$ +--[[ + $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() diff --git a/share/luaplaylist/youtube.lua b/share/luaplaylist/youtube.lua index 9c3aa7f661..719f736cde 100644 --- a/share/luaplaylist/youtube.lua +++ b/share/luaplaylist/youtube.lua @@ -1,4 +1,24 @@ --- $Id$ +--[[ + French humor site: http://lelombrik.net + + $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. +--]] -- Helper function to get a parameter's value in a URL function get_url_param( url, name ) diff --git a/share/luaplaylist/youtube_homepage.lua b/share/luaplaylist/youtube_homepage.lua index 4119ccd1ee..5c7e88af93 100644 --- a/share/luaplaylist/youtube_homepage.lua +++ b/share/luaplaylist/youtube_homepage.lua @@ -1,6 +1,24 @@ --[[ - Parse YouTube homepage and browse pages. Next step is to recode firefox - in VLC ... using Lua of course ;) + Parse YouTube homepage and browse pages. Next step is to recode firefox + in VLC ... using Lua of course ;) + + $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. --]] function probe() -- 2.39.2