News for hackers. Stuff that matters.
Re:Self hosted YouTube media server – Tube Archivist by submeta on Sunday July 16, 2023 @07:47AM (#36745915)
Check this code fragment:

    youtube_details = {
        "youtube_id": vid_id,
        "channel_name": vid["channel"],
        "vid_thumb_url": vid["thumbnail"],
        "title": vid["title"],
        "channel_id": vid["channel_id"],
        "duration": duration_str,
        "published": published,
        "timestamp": int(datetime.now().timestamp()),
        # Pulling enum value out so it is serializable
        "vid_type": vid_type.value,
    }

There are no comments on this comment yet.