From 83fd7df5dffb9534085c610ee2553f3b6d26f4ce Mon Sep 17 00:00:00 2001 From: giantorth <56210456+giantorth@users.noreply.github.com> Date: Mon, 10 Oct 2022 13:55:43 -0700 Subject: [PATCH] Update regex in Signature.pm to fix playback Playback fixed based on similar change in youtube-dl: https://github.com/ytdl-org/youtube-dl/pull/30366 --- plugin/Signature.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/Signature.pm b/plugin/Signature.pm index 7396ace..bb7dc66 100644 --- a/plugin/Signature.pm +++ b/plugin/Signature.pm @@ -36,7 +36,7 @@ sub cache_player { } elsif ( $code =~ /(["\'])signature\1\s*,\s*([a-zA-Z0-9\$]+)\(/ ) { $funcname = $2; =cut - if ($code =~ /(?:\b|[^a-zA-Z0-9\$])([a-zA-Z0-9\$]{2})\s*=\s*function\(\s*a\s*\)\s*\{\s*a\s*=\s*a\.split\(\s*""\s*\)/) { + if ($code =~ /(?:\b|[^a-zA-Z0-9\$])([a-zA-Z0-9\$]{2,})\s*=\s*function\(\s*a\s*\)\s*\{\s*a\s*=\s*a\.split\(\s*""\s*\)/) { $funcname = $1 } elsif ($code =~ /([a-zA-Z0-9\$]+)\s*=\s*function\(\s*a\s*\)\s*\{\s*a\s*=\s*a\.split\(\s*""\s*\)/) { $funcname = $1;