[vlc-commits] art/lastfm: fix URI encoding (fixes #19272)

Rémi Denis-Courmont git at videolan.org
Sun Dec 10 21:39:57 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 10 22:39:26 2017 +0200| [526ae47cbc847a2412c408cbd4b3439e56ec9e47] | committer: Rémi Denis-Courmont

art/lastfm: fix URI encoding (fixes #19272)

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

 share/lua/meta/art/03_lastfm.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/lua/meta/art/03_lastfm.lua b/share/lua/meta/art/03_lastfm.lua
index 71db5bdae6..c15c30a3d2 100644
--- a/share/lua/meta/art/03_lastfm.lua
+++ b/share/lua/meta/art/03_lastfm.lua
@@ -33,7 +33,7 @@ function fetch_art()
     then return nil end
 
     if meta["artist"] and meta["album"] then
-        title = meta["artist"].."/"..meta["album"]
+        title = vlc.strings.encode_uri_component(meta["artist"]).."/"..vlc.strings.encode_uri_component(meta["album"])
     else
         return nil
     end



More information about the vlc-commits mailing list