{"record":{"id":"b70666693a864eec","repo":"tonhowtf/omniget","slug":"a-parte-n-o-existe-esse-v-deo-tem","errorCode":null,"errorMessage":"a parte {} não existe; esse vídeo tem {}","messagePattern":"a parte (.+?) não existe; esse vídeo tem (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src-tauri/src/platforms/bilibili/danmaku/export.rs","lineNumber":124,"sourceCode":"    let kind = url_kind::detect(&effective)\n        .map_err(|_| anyhow!(\"não reconheci um vídeo do Bilibili em: {}\", url))?;\n    let parsed = parser::parse(&client, &kind)\n        .await\n        .map_err(|e| friendly(e, with_account))?;\n\n    let parts = collect_parts(&parsed);\n    if parts.is_empty() {\n        return Err(anyhow!(\n            \"esse link não tem parte de vídeo com comentários — abra uma parte específica\"\n        ));\n    }\n    let wanted = if opts.page > 0 {\n        opts.page\n    } else {\n        page_from_kind(&kind)\n    };\n    let part = pick_part(&parts, wanted).ok_or_else(|| {\n        anyhow!(\n            \"a parte {} não existe; esse vídeo tem {}\",\n            wanted,\n            describe_pages(&parts)\n        )\n    })?;\n\n    let duration = if part.duration_secs > 0 {\n        part.duration_secs\n    } else {\n        FALLBACK_DURATION_SECS\n    };\n    report(\n        progress,\n        ID,\n        \"progress\",\n        2,\n        Some(4),\n        Some(format!(\"baixando os comentários de {}\", part.title)),","sourceCodeStart":106,"sourceCodeEnd":142,"githubUrl":"https://github.com/tonhowtf/omniget/blob/8600b91f4246848bac346874daa9e61c1fc5677a/src-tauri/src/platforms/bilibili/danmaku/export.rs#L106-L142","documentation":"pick_part could not find the requested page number among the parts collected from the parsed video: the {} placeholders are the wanted page and the actual number of parts. Fires when opts.page (or the page embedded in the URL) is out of range — e.g. requesting part 5 of a 2-part video.","triggerScenarios":"Thrown at src-tauri/src/platforms/bilibili/danmaku/export.rs:124 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a page number within the reported range of parts for this video","Omit the page option to let the exporter use the part from the URL","Verify the video still has that part — parts can be removed by the uploader"],"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-23T08:17:48.524Z"}