ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
yt_dlp_cache_entry_t Struct Reference

Cached yt-dlp result for one media source and its audio/video requests. More...

Data Fields

char url [MEDIA_URL_CACHE_SIZE]
char stream_url [MEDIA_STREAM_URL_SIZE]
char audio_url [MEDIA_STREAM_URL_SIZE]
char yt_dlp_options [512]
yt_dlp_request_options_t video_request
yt_dlp_request_options_t audio_request
time_t extracted_time
bool valid

Detailed Description

Cached yt-dlp result for one media source and its audio/video requests.

Cached yt-dlp result for one media source and its audio/video requests.

Avoids calling yt-dlp multiple times for the same URL during initialization (FPS detection, audio probing, playback setup).

The original URL and yt-dlp options identify the lookup; the extracted video and audio URLs are reused until extracted_time expires or valid is false. The process-wide cache is protected by its static mutex.

Definition at line 50 of file yt_dlp.c.

Field Documentation

◆ audio_request

yt_dlp_request_options_t yt_dlp_cache_entry_t::audio_request

Definition at line 55 of file yt_dlp.c.

◆ audio_url

char yt_dlp_cache_entry_t::audio_url[MEDIA_STREAM_URL_SIZE]

Definition at line 53 of file yt_dlp.c.

◆ extracted_time

time_t yt_dlp_cache_entry_t::extracted_time

Definition at line 56 of file yt_dlp.c.

◆ stream_url

char yt_dlp_cache_entry_t::stream_url[MEDIA_STREAM_URL_SIZE]

Definition at line 52 of file yt_dlp.c.

◆ url

char yt_dlp_cache_entry_t::url[MEDIA_URL_CACHE_SIZE]

Definition at line 51 of file yt_dlp.c.

◆ valid

bool yt_dlp_cache_entry_t::valid

Definition at line 57 of file yt_dlp.c.

◆ video_request

yt_dlp_request_options_t yt_dlp_cache_entry_t::video_request

Definition at line 55 of file yt_dlp.c.

◆ yt_dlp_options

char yt_dlp_cache_entry_t::yt_dlp_options[512]

Definition at line 54 of file yt_dlp.c.


The documentation for this struct was generated from the following file: