<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Fixed: #17540<br>
    <div class="moz-forward-container">
      <pre>Signed-off-by: Pierre Ynard <a class="moz-txt-link-rfc2396E" href="mailto:linkfanel@yahoo.fr"><linkfanel@yahoo.fr></a>
---
share/Makefile.am | 1 +
share/lua/playlist/newgrounds.lua | 44 
+++++++++++++++++++++++++++++++++++++++
2 files changed, 45 insertions(+)
create mode 100644 share/lua/playlist/newgrounds.lua

diff --git a/share/Makefile.am b/share/Makefile.am
index ecd7cda..8c5db61 100644
--- a/share/Makefile.am
+++ b/share/Makefile.am
@@ -152,6 +152,7 @@ nobase_vlclib_DATA = \
lua/playlist/liveleak.luac \
lua/playlist/metacafe.luac \
lua/playlist/mpora.luac \
+ lua/playlist/newgrounds.luac \
lua/playlist/pinkbike.luac \
lua/playlist/pluzz.luac \
lua/playlist/rockbox_fm_presets.luac \
diff --git a/share/lua/playlist/newgrounds.lua 
b/share/lua/playlist/newgrounds.lua
new file mode 100644
index 0000000..4e9e34d
--- /dev/null
+++ b/share/lua/playlist/newgrounds.lua
@@ -0,0 +1,44 @@
+--[[
+ $Id$
+
+ Copyright Â© 2016 the VideoLAN team
+
+ Authors: Ozancan Karatas, Pierre Ynard
+
+ 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" or vlc.access == "https" )
+ and string.match( vlc.path, "newgrounds%.com/.*/%d+" )
+end
+
+-- Parse function.
+function parse()
+ while true do
+ local line = vlc.readline()
+ if not line then break end
+
+ local path = string.match( line, 'new 
embedController%(%[{"url":"([^"]+)"' )
+ if path then
+ path = string.gsub( path, "\\/", "/" )
+ return { { path = path } }
+ end
+ end
+
+ vlc.msg.err( "VLC didn't opened Newgrounds media URL" )
+ return { }
+end
-- 
2.10.1.windows.1


</pre>
    </div>
  </body>
</html>