-
-
Notifications
You must be signed in to change notification settings - Fork 497
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
Fetch video count in playlist metadata #801
Conversation
Thank you. I'm not sure I like that some playlists will have |
During my testing I didn't find any playlists where YouTube doesn't return the number of videos, but for safety reasons I made it nullable internally and set it to 0 in the |
It looks like the What video count does it return for the non- YoutubeExplode/YoutubeExplode.Tests/TestData/PlaylistIds.cs Lines 5 to 14 in 9f1bffd
|
I have implemented the parsing of the video count for the I have inspected the YouTube API response and I have noticed that the Thus I have added the YoutubeExplode/YoutubeExplode/Bridge/PlaylistNextResponse.cs Lines 37 to 58 in 0e6400a
|
Let's make the |
Playlist.VideoCount may be null in case of playlists with infinite videos (e.g. mixes).
Alright that sounds good. I have implemented it and updated the tests. |
Thank you :) |
Closes #356
// Provided solution wasn't actually a solution. Just a workaround.
Added support for "vidoes count" property for playlist fetching:
Knowing the estimate videos count provided by the offical YouTube API without having to reiterate over the entire video collection is needed (especially when there are hundreds of videos in the playlist)
int VideosCount
toPlaylist
int? VideosCount
toIPlaylistData
,PlaylistBrowseResponse
,PlaylistNextResponse
PlaylistSpecs
-Tests