Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Youtube update - Fixed var_regex pattern #1919

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nickpotafiy
Copy link

@nickpotafiy nickpotafiy commented May 7, 2024

YouTube must've updated their code, the library breaks on this line:

var_regex = re.compile(r"^\w+\W")

Since the value begins with $ I added an optional match:

var_regex = re.compile(r"^\$?\w+\W")

Tested and works.

@bhuiyanmobasshir94
Copy link

I believe this has already been mentioned by the maintainer in the StackOverflow.

@jhj0517
Copy link

jhj0517 commented May 8, 2024

Just stating related issue here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants