Skip to content

[Bug]: Downloaded artifacts lack Content-Length #240

Description

@gohoski

What happened?

It seems that the server doesn't add Content-Length to the downloader's artifact URL. This means that the download's file size is not shown in the download list, so e.g. no download time estimation could be done and it is unclear how much of the file has been downloaded. I suggest that Content-Length should be added. I don't know if this is an issue of the Kotlin server or the Go downloader, so I don't think I can provide any specific details. I also don't know if adding Content-Length is even feasible, but I assume so, as the video has been downloaded and muxed by the instance.

Thank you very much for this awesome project! It is the only YouTube frontend that fully implements SABR and is optimized. The fact that BiliBili and NicoNico are also accessible is also amazing.

Steps to reproduce

  1. Go to a YouTube video
  2. Click the Download button
  3. Select any quality and download
  4. See that the downloaded file doesn't have file size displayed and the estimated time is unavailable. This is also evident by the absence of Content-Length in the /downloader/jobs/{id}/artifact response.

Area

Downloader

Channel

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: backendTypeType-Server API or extractionarea: downloaderTypeType-Downloader servicebugSomething isn't workingpriority: mediumMedium priority

    Type

    No type

    Projects

    Status
    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions