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

RegexMatchError #85

Open
boidushya opened this issue Jun 5, 2020 · 3 comments
Open

RegexMatchError #85

boidushya opened this issue Jun 5, 2020 · 3 comments

Comments

@boidushya
Copy link

  File "main.py", line 45, in <module>
    post()
  File "main.py", line 24, in post
    vidUrl,(songUrl,t) = prUtils.generate()
  File "E:\bots\dancebot\prUtils.py", line 67, in generate
    pytube.YouTube(q).streams.filter(file_extension='mp4').first().download(output_path="./assets",filename="tempdance")
  File "E:\ProgramData\Anaconda3\lib\site-packages\pytube\__main__.py", line 91, in __init__
    self.prefetch()
  File "E:\ProgramData\Anaconda3\lib\site-packages\pytube\__main__.py", line 183, in prefetch
    self.js_url = extract.js_url(self.watch_html)
  File "E:\ProgramData\Anaconda3\lib\site-packages\pytube\extract.py", line 143, in js_url
    base_js = get_ytplayer_config(html)["assets"]["js"]
  File "E:\ProgramData\Anaconda3\lib\site-packages\pytube\extract.py", line 202, in get_ytplayer_config
    raise RegexMatchError(caller="get_ytplayer_config", pattern="config_patterns")

Occasionally this RegexMatchError pops up while running my script. Didn't use to happen before, again, seems like a youtube change thing

@twwwy
Copy link

twwwy commented Jul 9, 2020

I have the same issue

@sirodus
Copy link

sirodus commented Sep 23, 2020

Here is my solution: pytube#742

@fotscode
Copy link

i had the same problem but i just upgraded to the version 10.0.0 and it worked, try it out using "pip install pytube --upgrade"

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

No branches or pull requests

4 participants