Skip to content
New issue

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

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

Already on GitHub? # to your account

Regex Error Again #122

Open
garmanarnaryt opened this issue Jul 9, 2024 · 0 comments
Open

Regex Error Again #122

garmanarnaryt opened this issue Jul 9, 2024 · 0 comments

Comments

@garmanarnaryt
Copy link

Just yesterday, this was working. i am using the latest version of pytube.

I think this has been encountered before, and pytube updated the regex code in the cipher.py

perhaps youtube did an update... please help.

here are my logs...

stable3.py", line 61, in
audio_download = vid.streams.get_audio_only()
^^^^^^^^^^^
python3.12/site-packages/pytube/main.py", line 296, in streams
return StreamQuery(self.fmt_streams)
^^^^^^^^^^^^^^^^
python3.12/site-packages/pytube/main.py", line 188, in fmt_streams
extract.apply_signature(stream_manifest, self.vid_info, self.js)
python3.12/site-packages/pytube/extract.py", line 409, in apply_signature
cipher = Cipher(js=js)
^^^^^^^^^^^^^
python3.12/site-packages/pytube/cipher.py", line 43, in init
self.throttling_plan = get_throttling_plan(js)
^^^^^^^^^^^^^^^^^^^^^^^
python3.12/site-packages/pytube/cipher.py", line 406, in get_throttling_plan
raw_code = get_throttling_function_code(js)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
python3.12/site-packages/pytube/cipher.py", line 312, in get_throttling_function_code
name = re.escape(get_throttling_function_name(js))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
python3.12/site-packages/pytube/cipher.py", line 297, in get_throttling_function_name
raise RegexMatchError(
pytube.exceptions.RegexMatchError: get_throttling_function_name: could not find match for multiple

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

No branches or pull requests

1 participant