Skip to content
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

Youtube Publishing reliability improvements. #1644

Merged

Conversation

ashishjh-bst
Copy link
Contributor

This change moves from a channel and last published video based cache to a video list cache.

The issue with the original implementation is that you can upload videos before another video, but publish it at a later time, causing the first video to be not notified by the bot. Instead of keeping last video ID per channel, this effectively moves to a video based cache.

It caches all video ids the bot has published in last x days, where x is default 1 day, but configurable from environment, and on receiving an event for a video, it checks if the video in the event published was published more than x days ago, or is in the video cache, the bot will publish the video if it isn't in the cache.

A possible downside is that certain channels upload videos quite in advance, and premiere it at a later date, if this difference is more than the video list cache days, the video will not be published.

@ashishjh-bst ashishjh-bst merged commit 447a527 into botlabs-gg:dev May 8, 2024
2 checks passed
@ashishjh-bst ashishjh-bst deleted the youtube-reliability-improvements branch October 10, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant