This code will stops our execution of the algorithm once he found a comments disabled channel.
Then as described in the very last paragraph of the technical details section of the project proposal we will use YouTube Data API v3 PlaylistItems: list endpoint to proceed video per video, as some videos (for instance: 3F8dFt8LsXY) have comments but the global channels comments are disabled (the example channel is UCWIdqSQekeGmUWlSFeCiEnA). However instead of directly proceeding with CommentThreads: list endpoint with each video, we could pass 50 of them to Videos: list endpoint with part=statistics to see whether or not some have comments (item/statistics/commentCount field). Maybe such an optimization
Note that if channels with disabled comments have more than 20,000 videos then we still don't know how to proceed, but they are some things to try (I haven't ever encountered such a channel).
[This code](https://gitea.lemnoslife.com/Benjamin_Loison/YouTube_captions_search_engine/src/commit/b12fa15288598ed578ea224d620243fee107e860/main.cpp#L121-L125) will stops our execution of the algorithm once he found a comments disabled channel.
Then as described in the very last paragraph of [the technical details section of the project proposal](https://gitea.lemnoslife.com/Benjamin_Loison/YouTube_captions_search_engine/wiki/Project-proposal#technical-details) we will use YouTube Data API v3 PlaylistItems: list endpoint to proceed video per video, as some videos (for instance: [`3F8dFt8LsXY`](https://www.youtube.com/watch?v=3F8dFt8LsXY)) have comments but the global channels comments are disabled (the example channel is [`UCWIdqSQekeGmUWlSFeCiEnA`](https://www.youtube.com/channel/UCWIdqSQekeGmUWlSFeCiEnA)). However instead of directly proceeding with CommentThreads: list endpoint with each video, we could pass 50 of them to Videos: list endpoint with `part=statistics` to see whether or not some have comments (`item/statistics/commentCount` field). Maybe such an optimization
Note that if channels with disabled comments have more than 20,000 videos then we still don't know how to proceed, but [they are some things to try](https://gitea.lemnoslife.com/Benjamin_Loison/YouTube_captions_search_engine/wiki#user-content-concerning-20-000-videos-limit-for-youtube-data-api-v3-playlistitems-list-endpoint) (I haven't ever encountered such a channel).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This code will stops our execution of the algorithm once he found a comments disabled channel.
Then as described in the very last paragraph of the technical details section of the project proposal we will use YouTube Data API v3 PlaylistItems: list endpoint to proceed video per video, as some videos (for instance:
3F8dFt8LsXY) have comments but the global channels comments are disabled (the example channel isUCWIdqSQekeGmUWlSFeCiEnA). However instead of directly proceeding with CommentThreads: list endpoint with each video, we could pass 50 of them to Videos: list endpoint withpart=statisticsto see whether or not some have comments (item/statistics/commentCountfield). Maybe such an optimizationNote that if channels with disabled comments have more than 20,000 videos then we still don't know how to proceed, but they are some things to try (I haven't ever encountered such a channel).