{"record":{"id":"0c2ae4b5b18f60ed","repo":"tonhowtf/omniget","slug":"no-media-url-available-0c2ae4","errorCode":null,"errorMessage":"No media URL available","messagePattern":"No media URL available","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src-tauri/src/platforms/twitch/mod.rs","lineNumber":327,"sourceCode":"                    opts.download_mode.as_deref(),\n                    opts.format_id.as_deref(),\n                    opts.filename_template.as_deref(),\n                    opts.referer.as_deref().or(Some(\"https://www.twitch.tv/\")),\n                    opts.cancel_token.clone(),\n                    None,\n                    opts.concurrent_fragments,\n                    false,\n                    &[],\n                    opts.audio_format.as_deref(),\n                )\n                .await;\n            }\n        }\n\n        let first = info\n            .available_qualities\n            .first()\n            .ok_or_else(|| anyhow!(\"No media URL available\"))?;\n\n        let selected = if let Some(ref wanted) = opts.quality {\n            info.available_qualities\n                .iter()\n                .find(|q| q.label == *wanted)\n                .unwrap_or(first)\n        } else {\n            first\n        };\n\n        let filename = format!(\n            \"{}_{}.mp4\",\n            sanitize_filename::sanitize(&info.title),\n            selected.label\n        );\n        let output_path = opts.output_dir.join(&filename);\n\n        let total_bytes = direct_downloader::download_direct(","sourceCodeStart":309,"sourceCodeEnd":345,"githubUrl":"https://github.com/tonhowtf/omniget/blob/8600b91f4246848bac346874daa9e61c1fc5677a/src-tauri/src/platforms/twitch/mod.rs#L309-L345","documentation":"After resolving media info, info.available_qualities is empty (the `first` lookup found nothing) — no clip variant with a playable media URL exists for this content. The clip's video is still processing, was removed, or every quality sourceURL is unavailable, so download has nothing to fetch.","triggerScenarios":"Thrown at src-tauri/src/platforms/twitch/mod.rs:327 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Wait and retry if the clip was just published — qualities appear after processing","Verify the clip still plays on twitch.tv","Update the app/gallery backend if the schema changed"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8600b91f4246848bac346874daa9e61c1fc5677a","analyzedAt":"2026-09-12T14:29:19.317Z","contentChangedAt":"2026-09-12T14:29:19.317Z","schemaVersion":2},"datasetVersion":"2026-09-15T23:17:13.987Z"}