Skip to content

web seed is missing from magnet link #192

@insanity54

Description

@insanity54

Hello I'm new to torrentfile and I was hoping to use it to create magnet links with web seed ('ws' query parameter.) It looks like torrentfile --web-seed option along with --output generates a torrent file with the web seed metadata intact, but the --magnet option doesn't put a 'ws' query string in the magnet link. I'm not sure this is a bug, maybe it's meant to be that way? I'm not sure but I figured I'd bring it up. Here's an example.

torrentfile --magnet --prog 0 --out ./test-fixture.torrent -a https://localhost:6969/announce --web-seed https://example.com/test-fixture.ts --meta-version 3 ./test-fixture.ts

I was hoping to see 'ws' query parameter in the following magnet url, but it's not there.

magnet:?xt=urn:btih:7f28f8b5ed083b53c73055c8d834e3aa6cb9ddcd&xt=urn:btmh:122043dc7f3d12cf82fd013e3a870f0fcd845c4b6478ab6ddfaf5b9564a481a11ea6&dn=test-fixture.ts&tr=https%3A%2F%2Flocalhost%3A6969%2Fannounce

Torrent Save Path:  /home/insanity54/Downloads/torrentfile/test-fixture.torrent

The output torrent has the expected web-seed, but the magnet link does not.

torrentfile info ./test-fixture.torrent                                                                                                                                       ✔ 
-------------------------------------------------


announce      https://localhost:6969/announce
announce-list https://localhost:6969/announce
created by    torrentfile_v0.9.2
creation date 1739846039
url-list      https://example.com/test-fixture.ts
length        1832436
meta version  2
name          test-fixture.ts
piece length  16384


-------------------------------------------------% 

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