-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[BUG] RegexMatchError ? #1199
Comments
Thank you for contributing to PyTube. Please remember to reference Contributing.md |
Same.
Raise error:
|
lmao, got the same error and wanted to open an issue. Literally yesterday everything was fine |
Prolly some new changes from youtube side |
ditto |
got the same error, is it because of the new version? |
As close as I can tell this is being thrown from cipher.py which attempts to thwart YouTubes preventative measures for allowing automated video downloading. If YT wised up and are using a tougher challenge method now this could be a tough nut to crack. Lines 30, 31 in cipher.py
Looking through the js that the regex is searching is some giant obfuscated mess that I am in no way qualified to deal with so this is where the extent of my help with this issue ends. |
Same. Raise exception from here: https://github.com/pytube/pytube/blob/master/pytube/cipher.py#L31 The code for |
Thank you Juancho, I add this fix to PR #1193 |
@JavDomGom please add another change to your PR: # pytube/parser.py, line 152
- func_regex = re.compile(r"function\([^)]+\)")
+ func_regex = re.compile(r"function\([^)]*\)") this fixes another exception occurring during audio fetching:
|
HUGE you guys rock. Can't wait for the patch |
What text editor is this @JavDomGom |
top screenshot at least looks like PyCharm |
Hi @arturtamborski, this is already solved in the current version: |
Yes, there are many PR to review and merge. As soon as the original code is up to date we should all update as well. Temporarily, whoever wants can use my fork with these problems already solved and if you prefer you can also apply the changes to your local version. |
PyCharm 2021.3.1 (Professional Edition), IMHO it is the best Python IDE, I use it like a sir. ;D |
Update the library with the changes you made and then later we solve the problem of the kit... We want a solution All telegram bots and Windows programs are stopped .. Update the library with what you have solved |
|
Please Anyone share the branch in which it is patched |
Line 30 in 2e307d8
|
Hii, |
I wrote the code to fix this bug in this PR #1336 I tested it locally and it worked for me. |
After I changed this line, the error changed to |
May i have a query that when it will have a formal release or update for this fix? |
Hello Programmers, Code def index(request): Error In Terminal |
Signed-off-by: joel tang <jztangw@gmail.com>
i did change line 30 manually, still not fixed. pytube version 15 yesterday everything was working fine, but today suddenly this issue popped. Please provide another fix |
Unfortunately the fork now throws an |
There was a bug in this file and it was encountered by many. As seen on pytube#1199 , the issue has to be resolved by updating the line 30 to var_regex = re.compile(r"^\$*\w+\W")
Until now it's worked perfectly, but now it's showing a issue
is this only for me or ?, can anyone help ty
The text was updated successfully, but these errors were encountered: