[英]Creation of torrent using monotorrent
我正在嘗試使用C#創建一個包含monotorrent包的torrent文件。
我已經使用torrent創建者創建了torrent文件,但我想添加一些我在torrent創建者方法或屬性中找不到的其他選項。
我正在尋找的選項:
這是我的代碼片段:
string filepath = ofd.FileName;
PathDirectoryTxt.Text = filepath;
MonoTorrent.Common.TorrentCreator torrentcreaotr = new MonoTorrent.Common.TorrentCreator();
ITorrentFileSource fileSource = new TorrentFileSource(filepath);
torrentcreaotr.Comment = CommentsRichTxt.Text;
torrentcreaotr.CreatedBy = "Google using " + VersionInfo.ClientVersion;
torrentcreaotr.Publisher = "www.itsitus.com";
if ((PrivateTorrentCheckbox.Checked))
{
torrentcreaotr.Private = true;
}
else if (!PrivateTorrentCheckbox.Checked)
{
torrentcreaotr.Private = false;
}
string savepath = sfd.FileName;
torrentcreaotr.Create(fileSource, savepath);
MessageBox.Show("torrent file has been created successfully !");
您是否嘗試使用跟蹤器的網址設置“通知”屬性,或者如果您有跟蹤器級別/后備,則設置“通知”? 同樣,使用GetrightHttpSeed屬性設置Webseeds。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.