Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web-Seeds not fully implemented #271

Open
Finomosec opened this issue Sep 21, 2024 · 0 comments
Open

Web-Seeds not fully implemented #271

Finomosec opened this issue Sep 21, 2024 · 0 comments

Comments

@Finomosec
Copy link

Finomosec commented Sep 21, 2024

Hi there,

you added "support" for Web-Seeds here:
ebb5c29

But you forgot to add it in (at least) TorrentMetadata and TorrentSerializer, so the info gets lost, when doing this:

private void makeTorrent(File torrentFile) {
    final var builder = new MetadataBuilder();
    // builder.setXYZ(...);
    saveTorrent(builder.build(), torrentFile);
}

private void saveTorrent(TorrentMetadata torrent, Path file) throws IOException {
    try (FileOutputStream fos = new FileOutputStream(file.toFile())) {
	    fos.write(new TorrentSerializer().serialize(torrent));
    }
}

The WebSeeds are missing in the saved torrent file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant