Skip to content

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

Description

@harupong

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions