Skip to content

Time calculation in fetch_new_uploads.py #28

@Ke-vin-S

Description

@Ke-vin-S

Time calculation for 30 day window to load videos is counted with reference to datetime.now
That is depending on the time script is running

  # collect videos so can fetch data with batch API
  upload_playlist_ids = [playlist_id[0] for playlist_id in fetch_all_channels()]
  logger.info(f"Found {len(upload_playlist_ids)} active channels")

  video_ids = fetch_recent_video_ids(since_time, upload_playlist_ids, yt)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions