tonhowtf/omniget · error

a parte não existe; esse vídeo tem

Error message

a parte {} não existe; esse vídeo tem {}

What it means

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.

Solutions

  1. Use a page number within the reported range of parts for this video
  2. Omit the page option to let the exporter use the part from the URL
  3. Verify the video still has that part — parts can be removed by the uploader
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src-tauri/src/platforms/bilibili/danmaku/export.rs:124 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tonhowtf/omniget@8600b91f42 (2026-09-12). Data as JSON: /api/errors/b70666693a864eec. Report an issue: GitHub.

Appendix: source

Thrown at src-tauri/src/platforms/bilibili/danmaku/export.rs:124

    let kind = url_kind::detect(&effective)
        .map_err(|_| anyhow!("não reconheci um vídeo do Bilibili em: {}", url))?;
    let parsed = parser::parse(&client, &kind)
        .await
        .map_err(|e| friendly(e, with_account))?;

    let parts = collect_parts(&parsed);
    if parts.is_empty() {
        return Err(anyhow!(
            "esse link não tem parte de vídeo com comentários — abra uma parte específica"
        ));
    }
    let wanted = if opts.page > 0 {
        opts.page
    } else {
        page_from_kind(&kind)
    };
    let part = pick_part(&parts, wanted).ok_or_else(|| {
        anyhow!(
            "a parte {} não existe; esse vídeo tem {}",
            wanted,
            describe_pages(&parts)
        )
    })?;

    let duration = if part.duration_secs > 0 {
        part.duration_secs
    } else {
        FALLBACK_DURATION_SECS
    };
    report(
        progress,
        ID,
        "progress",
        2,
        Some(4),
        Some(format!("baixando os comentários de {}", part.title)),

View on GitHub (pinned to 8600b91f42)