Commit 12a302e9 authored by Pierre Ynard's avatar Pierre Ynard

youtube.lua: update author name extraction

parent d83bfb59
...@@ -165,8 +165,8 @@ function parse() ...@@ -165,8 +165,8 @@ function parse()
if string.match( line, "<meta property=\"og:image\"" ) then if string.match( line, "<meta property=\"og:image\"" ) then
_,_,arturl = string.find( line, "content=\"(.-)\"" ) _,_,arturl = string.find( line, "content=\"(.-)\"" )
end end
if string.match( line, " rel=\"author\"" ) then if not artist then
_,_,artist = string.find( line, "href=\"/user/([^\"]*)\"" ) artist = string.match( line, "yt%-uix%-sessionlink yt%-user%-name[^>]*>([^<]*)</" )
end end
-- JSON parameters, also formerly known as "swfConfig", -- JSON parameters, also formerly known as "swfConfig",
-- "SWF_ARGS", "swfArgs", "PLAYER_CONFIG", "playerConfig" ... -- "SWF_ARGS", "swfArgs", "PLAYER_CONFIG", "playerConfig" ...
......
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