]> git.sesse.net Git - vlc/commitdiff
cue.lua: fix double URL encoding of directory name
authorLorenzo Pistone <lorenzo.pistone@studenti.unito.it>
Sun, 18 Sep 2011 10:28:34 +0000 (12:28 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Sun, 18 Sep 2011 10:28:34 +0000 (12:28 +0200)
Signed-off-by: Pierre Ynard <linkfanel@yahoo.fr>
share/lua/playlist/cue.lua

index b7f5078ebec25e2a99a58861fab69fdac68e9ccc..57215e0f834933c157babe7b3f6114af39bd6a18 100644 (file)
@@ -49,7 +49,7 @@ function cue_path( src )
                return src
        end
 
-       local path = string.gsub( vlc.path, '\\', '/' )
+       local path = string.gsub( vlc.strings.decode_uri(vlc.path), '\\', '/' )
        local slash = string.find( string.reverse( path ), '/' )
        if( path == nil ) then
                return src