Commit 96e4d7a3 authored by Pierre Ynard's avatar Pierre Ynard
Browse files

youtube.lua: fix author name

parent d9e952a9
...@@ -240,6 +240,10 @@ function parse() ...@@ -240,6 +240,10 @@ function parse()
title = vlc.strings.decode_uri( title ) title = vlc.strings.decode_uri( title )
end end
local artist = string.match( line, "&author=([^&]*)" ) local artist = string.match( line, "&author=([^&]*)" )
if artist then
artist = string.gsub( artist, "+", " " )
-- Not sure if there may be encoded characters to decode here
end
local arturl = string.match( line, "&thumbnail_url=([^&]*)" ) local arturl = string.match( line, "&thumbnail_url=([^&]*)" )
if arturl then if arturl then
arturl = vlc.strings.decode_uri( arturl ) arturl = vlc.strings.decode_uri( arturl )
......
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