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

find optimal parameter for wait_for_video(min_wait, max_wait) option #6

Open
harupong opened this issue Apr 17, 2023 · 0 comments
Open
Assignees

Comments

@harupong
Copy link
Owner

currently they are set to (60, 600)

min_wait is used when the livestream is not scheduled

So the current setup sends a request to YouTube every 60 seconds, which seems a little too much. I think we can reduce the frequency to 10 minutes.

max_wait is used when the livestream is scheduled

This is used when the livestream is scheduled. So if the livestream is scheduled for 10:00, and it's 9:00 now, ytpodgen will send a request to YouTube every 10 minutes. This is to avoid sending too many requests to YouTube.

I think by setting this to so long, like 1 day(86,400sec), we can both

  • reduce the frequency of requests to YouTube
  • if the livestream is scheduled within 1 day, ytpodgen will wait for the livestream to start till the scheduled time.
@harupong harupong self-assigned this Apr 17, 2023
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

No branches or pull requests

1 participant