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

Malformed torrent created when TorrentType.V2Only #709

Open
alekw opened this issue Dec 18, 2024 · 0 comments
Open

Malformed torrent created when TorrentType.V2Only #709

alekw opened this issue Dec 18, 2024 · 0 comments

Comments

@alekw
Copy link

alekw commented Dec 18, 2024

Hi,
it seems monotorrent 3.0.2 produces invalid V2 torrent files. I tried to open it with qBittorrent, transmission, uTorrent and some online tools. They all either crash or report missing info.pieces in file. The torrent does not show content of torrents when added to transmission. The torrent contains single zip file, as below.
Code below works fine when using TorrentType.V1Only

        private void CreateTorrentFile()
        {
            var zipFileName = "export.zip";
            var torrentCreator = new TorrentCreator(TorrentType.V2Only);
            var fileSource = new TorrentFileSource(zipFileName);

            torrentCreator.Create(fileSource, $"{zipFileName}.torrent");
        }
@alekw alekw changed the title Malformed torrent created in TorrentType.V2Only Malformed torrent created when TorrentType.V2Only Dec 18, 2024
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