Skip to content

Commit 29a4cc7

Browse files
committed
Fix typo in decryption constant
1 parent c1e1ac1 commit 29a4cc7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ public String getErrorMessage() {
677677

678678
private static final String VERIFIED_URL_PARAMS = "&has_verified=1&bpctr=9999999999";
679679

680-
private final static String DECYRYPTION_SIGNATURE_FUNCTION_REGEX =
680+
private final static String DECRYPTION_SIGNATURE_FUNCTION_REGEX =
681681
"([\\w$]+)\\s*=\\s*function\\((\\w+)\\)\\{\\s*\\2=\\s*\\2\\.split\\(\"\"\\)\\s*;";
682682
private final static String DECRYPTION_AKAMAIZED_STRING_REGEX =
683683
"yt\\.akamaized\\.net/\\)\\s*\\|\\|\\s*.*?\\s*c\\s*&&\\s*d\\.set\\([^,]+\\s*,\\s*(:encodeURIComponent\\s*\\()([a-zA-Z0-9$]+)\\(";
@@ -873,7 +873,7 @@ private String getDecryptionFuncName(String playerCode) throws DecryptException
873873
// to se if the function can actually be found with the given regex.
874874
// However if this cascading should propably be cleaned up somehow as it looks a bit weird.
875875
try {
876-
decryptionFunctionName = Parser.matchGroup1(DECYRYPTION_SIGNATURE_FUNCTION_REGEX, playerCode);
876+
decryptionFunctionName = Parser.matchGroup1(DECRYPTION_SIGNATURE_FUNCTION_REGEX, playerCode);
877877
} catch (Parser.RegexException re) {
878878
try {
879879
decryptionFunctionName = Parser.matchGroup1(DECRYPTION_AKAMAIZED_SHORT_STRING_REGEX, playerCode);

0 commit comments

Comments
 (0)