Description
🛑 DO NOT REMOVE OR SKIP THIS ISSUE TEMPLATE 🛑
Issues with incomplete or missing information will be closed automatically.
🐞 Bug Description
When a Playlist object is created for a playlist with a large number of videos (appears to be 100 or greater), the video_urls property returns a list of only the first 100 video urls, ending with "https://www.youtube.com[]"
🔢 Code Snippet
Include the minimal code snippet that reproduces the issue.
import pytubefix
short_test_playlist = "https://www.youtube.com/playlist?list=PLde3B3CcnQ3WwuosFREYYrfvVRxNpnqTX" #this playlist should have 99 videos
short_playlist = pytubefix.Playlist(url=short_test_playlist)
print(short_playlist.video_urls)
print(len(short_playlist))
print()
print()
long_test_playlist = "https://www.youtube.com/playlist?list=PLde3B3CcnQ3US5TLcQPfQ2OxWS8bRRZta" # this playlist should have >150 videos, but pytubefix 8.12.3 only finds 100, plus "https://www.youtube.com[]"
long_playlist = pytubefix.Playlist(url=long_test_playlist)
print(long_playlist.video_urls)
print(len(long_playlist))
🎯 Expected Behavior
pytubefix.Playlist().video_urls should return all of the video urls in the playlist, regardless of playlist length.
📸 Screenshots or Logs
This is a screenshot of the outcome of running the included code snippet. Note how the second example returns a list of 101 urls, when it should contain over 150, and the final url in the list is not a valid video url
🖥️ Environment Details
Fill in the details below about your setup:
- Operating System: Windows 10
- Python Version: 3.9.4
- Pytubefix Version: 8.12.3
📋 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.
Metadata
Metadata
Assignees
Labels
Projects
Status