Commit 06444907 authored by Pierre Ynard's avatar Pierre Ynard

youtube.lua: fix title parsing for website changes

Shallow fix only, but improved rationalization
parent b49edf56
......@@ -251,7 +251,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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment