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

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


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

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

(cherry picked from commit 526ae47cbc847a2412c408cbd4b3439e56ec9e47)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=024ca0802d3e2611b5c26b39be461c638925d19e
---

 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