[vlc-commits] metachannels: properly resolve xml entities

Pierre Ynard git at videolan.org
Sun Feb 12 03:47:57 CET 2012


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun Feb 12 03:48:00 2012 +0100| [6666c97e7f2e9c854aa83ed820af89d2bb6f438f] | committer: Pierre Ynard

metachannels: properly resolve xml entities

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

 share/lua/playlist/metachannels.lua |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/share/lua/playlist/metachannels.lua b/share/lua/playlist/metachannels.lua
index 06d86d1..fc0fd46 100644
--- a/share/lua/playlist/metachannels.lua
+++ b/share/lua/playlist/metachannels.lua
@@ -42,11 +42,11 @@ function parse()
     for _,item in ipairs( channel.children ) do
         if( item.name == 'item' ) then
             simplexml.add_name_maps( item )
-            local url = string.gsub( item.children_map['link'][1].children[1], '&', '&' )
-            local title = item.children_map['title'][1].children[1]
+            local url = vlc.strings.resolve_xml_special_chars( item.children_map['link'][1].children[1] )
+            local title = vlc.strings.resolve_xml_special_chars( item.children_map['title'][1].children[1] )
             local arturl = nil
             if item.children_map['media:thumbnail'] then
-                arturl = item.children_map['media:thumbnail'][1].attributes['url']
+                arturl = vlc.strings.resolve_xml_special_chars( item.children_map['media:thumbnail'][1].attributes['url'] )
             end
             table.insert( tracks, { path = url,
                                     title = title,



More information about the vlc-commits mailing list