diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua index ab2a1ecaf4..c4da544803 100644 --- a/share/lua/playlist/youtube.lua +++ b/share/lua/playlist/youtube.lua @@ -316,7 +316,7 @@ function parse() if not path then -- If this is a live stream, the URL map will be empty -- and we get the URL from this field instead - local hlsvp = string.match( line, "\"hlsvp\": *\"(.-)\"" ) + local hlsvp = string.match( line, '\\"hlsManifestUrl\\": *\\"(.-)\\"' ) if hlsvp then hlsvp = string.gsub( hlsvp, "\\/", "/" ) path = hlsvp @@ -372,7 +372,7 @@ function parse() if not path then -- If this is a live stream, the URL map will be empty -- and we get the URL from this field instead - local hlsvp = string.match( line, "&hlsvp=([^&]*)" ) + local hlsvp = string.match( line, "%%22hlsManifestUrl%%22%%3A%%22(.-)%%22" ) if hlsvp then hlsvp = vlc.strings.decode_uri( hlsvp ) path = hlsvp