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

git at videolan.org git at videolan.org
Thu Jul 22 16:52:56 CEST 2010


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

fix youtube.lua

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

 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