Skip to content

torf._errors.MetainfoError: Invalid metainfo: ['info']['piece length'] is invalid: 25344 #60

Description

@WingGao

The BitTorrentSpecification says

The piece length specifies the nominal piece size, and is usually a power of 2.

The https://www.bittorrent.org/beps/bep_0052.html says:

The number of bytes that each logical piece in the peer protocol refers to. I.e. it sets the granularity of piece, request, bitfield and have messages. It must be a power of two and at least 16KiB.

So it should not be is_divisible_by_16_kib

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions