[vlc-commits] commit: fix youtube.lua (Ilkka Ollakka )

git at videolan.org git at videolan.org
Thu Jul 22 16:53:31 CEST 2010


vlc/vlc-1.1 | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Thu Jul 22 17:52:36 2010 +0300| [ebd7e0c3287a84e21b5e26da392cbe211e535e66] | committer: Ilkka Ollakka 

fix youtube.lua
(cherry picked from commit 806169e33a349d5ccd2a7c42eceeeaab8e154281)

Signed-off-by: Ilkka Ollakka <ileoo at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=ebd7e0c3287a84e21b5e26da392cbe211e535e66
---

 share/lua/playlist/youtube.lua |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index d7b5e7b..7ae74e9 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -93,6 +93,8 @@ function parse()
                         -- Apparently formats are listed in quality order,
                         -- so we can afford to simply take the first one
                         if not fmt or tonumber( itag ) == tonumber( fmt ) then
+                            -- do unescaping of /
+                            url = string.gsub( url, '\\/','/' )
                             path = url
                             break
                         end



More information about the vlc-commits mailing list