diff --git a/pytube/cipher.py b/pytube/cipher.py index d385d83a4..5b37badd1 100644 --- a/pytube/cipher.py +++ b/pytube/cipher.py @@ -27,7 +27,7 @@ class Cipher: def __init__(self, js: str): self.transform_plan: List[str] = get_transform_plan(js) - var_regex = re.compile(r"^\w+\W") + var_regex = re.compile(r"^\$*\w+\W") var_match = var_regex.search(self.transform_plan[0]) if not var_match: raise RegexMatchError(