Commit a4ced6b4 authored by Pierre Ynard's avatar Pierre Ynard

youtube.lua: fix artist parsing

It does happen to occasionally break due to random field ordering.
parent e5e0eacc
......@@ -268,8 +268,8 @@ function parse()
arturl = vlc.strings.resolve_xml_special_chars( arturl )
end
if string.match(line, "\"author\":\"(.-)\",") then
_,_,artist = string.find(line, "\"author\":\"(.-)\",")
if string.match(line, "\"author\": *\"(.-)\"") then
_,_,artist = string.find(line, "\"author\": *\"(.-)\"")
end
-- JSON parameters, also formerly known as "swfConfig",
......
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