[vlc-commits] youtube.lua: stop trying to double XML-decode title metadata

Pierre Ynard git at videolan.org
Tue Nov 3 01:34:35 CET 2020


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Nov  3 00:18:56 2020 +0100| [ff8edf3493ee0b4be700160da2b56b9c041ebb75] | committer: Pierre Ynard

youtube.lua: stop trying to double XML-decode title metadata

This attribute isn't double-encoded now, and so attempting this is not
just pointless but can theoretically lead to wrong output.

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

 share/lua/playlist/youtube.lua | 1 -
 1 file changed, 1 deletion(-)

diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index 29e3f1e184..a34534d81c 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -339,7 +339,6 @@ function parse()
             if string.match( line, "<meta property=\"og:title\"" ) then
                 _,_,name = string.find( line, "content=\"(.-)\"" )
                 name = vlc.strings.resolve_xml_special_chars( name )
-                name = vlc.strings.resolve_xml_special_chars( name )
             end
 
             if not description then



More information about the vlc-commits mailing list