-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Bot detection error #431
Comments
As a temporary solution, disable this check in the check_availability function (
Despite ignoring the error, the download continues |
The main problem here is NOT THE BOT DETECTION ! Looks like the dictionary keys changed... i had a look on YT they still be the same... However it's doesn't work anymore on pytubefix... I don't know why... |
What dictionary? |
# 🛑 DO NOT REMOVE OR SKIP THIS ISSUE TEMPLATE 🛑
Issues with incomplete or missing information will be closed automatically.
🐞 Bug Description
Provide a clear and concise description of the bug.
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/pytubefix/main.py", line 758, in title
if 'title' in self.vid_info['videoDetails']:
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'videoDetails'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/data/com.termux/files/home/yt.py", line 7, in
print(yt.title)
^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/pytubefix/main.py", line 794, in title
self.check_availability()
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/pytubefix/main.py", line 396, in check_availability
raise exceptions.BotDetection(video_id=self.video_id)
pytubefix.exceptions.BotDetection: _g1_mG6Ru3M This request was detected as a bot. Use
use_po_token=True
or switch to WEB client to view. See more details at #209🔢 Code Snippet
Include the minimal code snippet that reproduces the issue.
🎯 Expected Behavior
Describe what you expected to happen instead of the observed behavior.
I expected to download the audio correctly
📸 Screenshots or Logs
🖥️ Environment Details
Fill in the details below about your setup:
📋 Additional Context
Add any additional information or context that might help us resolve the issue.
🚀 Next Steps
Once submitted, we will triage the issue. Make sure to respond to follow-up questions to keep the process smooth.
The text was updated successfully, but these errors were encountered: