Support comments disabled channels #8

Closed
opened 2023-01-02 21:24:19 +01:00 by Benjamin_Loison · 0 comments

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).
Benjamin_Loison added the
medium
label 2023-01-06 18:51:11 +01:00
Benjamin_Loison added the
enhancement
label 2023-01-06 18:53:22 +01:00
Benjamin_Loison added the
high priority
label 2023-01-06 18:57:20 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Benjamin_Loison/YouTube_captions_search_engine#8
No description provided.