-
-
Notifications
You must be signed in to change notification settings - Fork 180
Open
Labels
BUGSomething isn't workingSomething isn't working
Description
π 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.
get_pot is not defined on AsyncYouTube but it is called by call_innertube in get_vid_info
probably just needs a translation of the one in YouTube
π’ Code Snippet
Include the minimal code snippet that reproduces the issue.
# Insert your code here
url = f"https://www.youtube.com/watch?v={video_id}"
yt = AsyncYouTube(url)
streams = await yt.streams()π― Expected Behavior
Describe what you expected to happen instead of the observed behavior.
I expected to get the streams
πΈ Screenshots or Logs
File "/home/user/fastapi_server.py", line 115, in read_youtube_video
streams = await yt.streams()
^^^^^^^^^^^^^^^^^^
File "/home/user/venv/lib/python3.12/site-packages/pytubefix/async_youtube.py", line 340, in streams
await self.check_availability()
File "/home/user/venv/lib/python3.12/site-packages/pytubefix/async_youtube.py", line 234, in check_availability
status, messages = extract.playability_status(await self.get_vid_info())
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/venv/lib/python3.12/site-packages/pytubefix/async_youtube.py", line 172, in get_vid_info
innertube_response = await call_innertube()
^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/venv/lib/python3.12/site-packages/pytubefix/async_youtube.py", line 164, in call_innertube
innertube.insert_po_token(visitor_data=await self.get_visitor_data(), po_token=await self.get_pot())
^^^^^^^^^^^^
AttributeError: 'AsyncYouTube' object has no attribute 'get_pot'
π₯οΈ Environment Details
Fill in the details below about your setup:
- Operating System: Ubuntu 24.04.3 LTS
- Python Version: 3.12.3
- Pytubefix Version: 10.0.1
π 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BUGSomething isn't workingSomething isn't working
Projects
Status
waiting