Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Commit

Permalink
Update YouTubeExtractor.java (#66)
Browse files Browse the repository at this point in the history
Fix pattern.
  • Loading branch information
barisahmet authored and HaarigerHarald committed Sep 8, 2018
1 parent e5ef7d6 commit 8fa5456
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -85,9 +85,10 @@ public abstract class YouTubeExtractor extends AsyncTask<String, Void, SparseArr

private static final Pattern patVariableFunction = Pattern.compile("([{; =])([a-zA-Z$][a-zA-Z0-9$]{0,2})\\.([a-zA-Z$][a-zA-Z0-9$]{0,2})\\(");
private static final Pattern patFunction = Pattern.compile("([{; =])([a-zA-Z$_][a-zA-Z0-9$]{0,2})\\(");

private static final Pattern patDecryptionJsFile = Pattern.compile("jsbin\\\\/(player(_ias)?-(.+?).js)");
private static final Pattern patSignatureDecFunction = Pattern.compile("\"signature\",(.{1,3}?)\\(.{1,10}?\\)");
private static final Pattern patSignatureDecFunction = Pattern.compile("(\\w+)\\s*=\\s*function\\((\\w+)\\).\\s*\\2=\\s*\\2\\.split\\(\"\"\\)\\s*;");

private static final SparseArray<Format> FORMAT_MAP = new SparseArray<>();

static {
Expand Down

0 comments on commit 8fa5456

Please sign in to comment.