[vlc-commits] youtube.lua: fix artist parsing
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 23:03:44 2016 +0100| [7623225de8be40c91b76a60cf83d0a010a0c1101] | committer: Felix Paul Kühne
youtube.lua: fix artist parsing
It does happen to occasionally break due to random field ordering.
(cherry picked from commit a4ced6b4ece2f97ca89cffe304f04660e1ea9965)
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=7623225de8be40c91b76a60cf83d0a010a0c1101
---
share/lua/playlist/youtube.lua | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index d1d9e07..6743f79 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -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",
More information about the vlc-commits
mailing list