You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 🛑 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.
As a temporary solution, disable this check in the check_availability function (pytubefix/__main__.py class YouTube)
...
elif status == 'LOGIN_REQUIRED':
if reason == (
'Sign in to confirm your age'
):
raise exceptions.AgeRestrictedError(video_id=self.video_id)
elif reason == (
'Sign in to confirm you’re not a bot'
):
return
raise exceptions.BotDetection(video_id=self.video_id)
else:
raise exceptions.LoginRequired(
video_id=self.video_id, reason=reason)
Despite ignoring the error, the download continues
# 🛑 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: