]> git.sesse.net Git - vlc/commitdiff
fix youtube.lua
authorIlkka Ollakka <ileoo@videolan.org>
Thu, 22 Jul 2010 14:52:36 +0000 (17:52 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Thu, 22 Jul 2010 14:52:46 +0000 (17:52 +0300)
share/lua/playlist/youtube.lua

index d7b5e7bd1c3314b2a2cc1910e4ccec13f4a72afe..7ae74e92e0d354d79309ac136481fa44a321f730 100644 (file)
@@ -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