Skip to content
This repository was archived by the owner on Sep 28, 2020. It is now read-only.

Commit b1b5110

Browse files
committed
Signs In Function Name (Signature Fix)
US container now has a sign in the function name causing 403. This fixes it.
1 parent c76edae commit b1b5110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

YoutubeExtractor/YoutubeExtractor/Decipherer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static string DecipherWithVersion(string cipher, string cipherVersion)
1313
string js = HttpHelper.DownloadString(jsUrl);
1414

1515
//Find "C" in this: var A = B.sig||C (B.s)
16-
string functNamePattern = @"\.sig\s*\|\|(\w+)\(";
16+
string functNamePattern = @"\.sig\s*\|\|(\w+|$)\(";
1717
var funcName = Regex.Match(js, functNamePattern).Groups[1].Value;
1818
string funcBodyPattern = @"(?<brace>{([^{}]| ?(brace))*})"; //Match nested angle braces
1919
string funcPattern = string.Format(@"{0}\(\w+\){1}", funcName, funcBodyPattern);

0 commit comments

Comments
 (0)