pub async fn resolve_video_download(
repo: &dyn MediaRepository,
item_id: &str,
quality: &str,
media_source_id: Option<&str>,
) -> ResolvedVideoDownloadExpand description
Resolve the download URL for a video, applying the audio-codec policy that keeps the saved file playable offline (DR-171), and predict its size from the same item lookup (DR-290).
Every video download goes through here rather than calling the builder directly: the builder is pure and cannot look the codec up, and a caller that forgets to is exactly how the silent downloads shipped.
TRACES: UR-071 | DR-171, DR-290