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

Pierre Ynard git at videolan.org
Mon Aug 17 19:04:50 CEST 2020


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

youtube.lua: avoid locale-dependent character class

(cherry picked from commit 19fb182b17de17616b09a5b34dcef826c377f04d)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>

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

 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