[vlc-commits] youtube.lua: fix title parsing for website changes
Pierre Ynard
git at videolan.org
Thu Jan 14 01:42:41 CET 2016
vlc/vlc-2.2 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed Jan 13 08:24:23 2016 +0100| [0e56e9c061cb931eab72a93dcc335025af1da135] | committer: Felix Paul Kühne
youtube.lua: fix title parsing for website changes
Shallow fix only, but improved rationalization
(cherry picked from commit 064449074c771c3b1177cfd8f1a3e2615bdb27a8)
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=0e56e9c061cb931eab72a93dcc335025af1da135
---
share/lua/playlist/youtube.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index 8f27804..ad2b591 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -262,7 +262,7 @@ function parse()
-- Try to find the video's title
line = vlc.readline()
if not line then break end
- if string.match( line, "<meta name=\"title\"" ) then
+ 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 )
More information about the vlc-commits
mailing list