[vlc-commits] youtube.lua: avoid locale-dependent character class

Pierre Ynard git at videolan.org
Mon Aug 17 18:53:54 CEST 2020


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Aug 17 18:25:48 2020 +0200| [19fb182b17de17616b09a5b34dcef826c377f04d] | committer: Pierre Ynard

youtube.lua: avoid locale-dependent character class

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=19fb182b17de17616b09a5b34dcef826c377f04d
---

 share/lua/playlist/youtube.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index 29e8bf8d56..98958f53d5 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -273,7 +273,7 @@ function pick_stream( stream_map, js_url )
     -- Either the "url" or the "signatureCipher" parameter is present,
     -- depending on whether the URL signature is scrambled.
     local cipher = string.match( pick, '"signatureCipher":"(.-)"' )
-        or string.match( pick, '"%a*[Cc]ipher":"(.-)"' )
+        or string.match( pick, '"[a-zA-Z]*[Cc]ipher":"(.-)"' )
     if cipher then
         -- Scrambled signature: some assembly required
         local url = stream_url( cipher, js_url )



More information about the vlc-commits mailing list