Adding Metadata To TORRENT In C#

Add custom metadata properties to a wide range of business documents, images, audio & video file formats using GroupDocs.Metadata for .NET API.


Download Free Trial

About GroupDocs.Metadata for .NET API

GroupDocs.Metadata for .NET offers an advanced set of metadata management and manipulation features, allowing .NET programmers to easily view, edit, delete, find, compare, swap and export metadata information from images and document formats without using any external software. Add metadata details to PDF, Microsoft Word, Excel, PowerPoint, Outlook, OneNote, Visio, Project, AutoCAD, Archive and Multimedia file formats with additional support to perform metadata operations on any .NET-based applications with true flexibility.

Steps for adding Metadata to TORRENT in C#

GroupDocs.Metadata for .NET makes it easy for .NET developers to add metadata details to TORRENT files from within their applications by implementing a few easy steps.

  • Load the TORRENT file to be updated.
  • Specify a predicate that will be used to add metadata properties.
  • Pass the predicate to the AddProperties method.
  • Save the changes.

System Requirements

GroupDocs.Metadata for .NET APIs are supported on all major platforms and operating systems. Before executing the code below, please make sure that you have the following prerequisites installed on your system.

  • Operating Systems: Microsoft Windows, Linux, MacOS
  • Development Environments: Visual Studio, Xamarin, MonoDevelop
  • Frameworks: .NET Framework, .NET Standard, .NET Core, Mono
  • Download the latest version of GroupDocs.Metadata for .NET from NuGet

// load the file in an instance of Metadata class
using (var metadata = new GroupDocs.Metadata.Metadata("input.torrent"))
{
    // add a property containing the content author
    var affected = metadata.AddProperties(p => p.Tags.Contains(
      GroupDocs.Metadata.Tagging.Tags.Person.Creator), new GroupDocs.Metadata.Common.PropertyValue("test content author"));
    Console.WriteLine("Affected properties: {0}", affected);
    metadata.Save("output.torrent");
}

Live Demos to Add Metadata

Add metadata information to TORRENT file right now by visiting GroupDocs.Metadata Live Demos website. The live demo has the following benefits.

No need to download API

No need to write any code

Just upload the source file

Get download link to save the file

Adding Metadata Properties To Other File Formats

Multi format documents and images metadata addition API for .NET. Retrieve metadata of some of the popular file formats as stated below.

Add Metadata to ZIP

(Zipped File)

Add Metadata to XLTX

(Excel Template)

Add Metadata to XLTM

(Excel Macro-Enabled Template)

Add Metadata to XLT

(Excel 97 - 2003 Template)

Add Metadata to XLSX

(Open XML Workbook)

Add Metadata to XLSM

(Macro-enabled Spreadsheet)

Add Metadata to XLSB

(Excel Binary Workbook)

Add Metadata to XLS

(Microsoft Excel Spreadsheet (Legacy))

Add Metadata to WMF

(Windows Metafile)

Add Metadata to WEBP

(Raster Web Image Format)

Add Metadata to WAV

(WAVE Audio File)

Add Metadata to VSX

(Visio Stencil XML File)

Add Metadata to VSS

(Visio Stencil File)

Add Metadata to VSDX

(Visio Drawing)

Add Metadata to VSD

(Visio Drawing File)

Add Metadata to VDX

(The 7th Guest Video File)

Add Metadata to TTF

(TrueType Font)

Add Metadata to TTC

(TrueType Font Collection)

Add Metadata to TIFF

(Tagged Image File Format)

Add Metadata to PSD

(Photoshop Document)

Add Metadata to PPTX

(Open XML presentation Format)

Add Metadata to PPTM

(Macro-enabled Presentation File)

Add Metadata to PPT

(Microsoft PowerPoint 97-2003)

Add Metadata to PPSX

(PowerPoint Slide Show)

Add Metadata to PPSM

(Macro-enabled Slide Show)

Add Metadata to PPS

(PowerPoint Slide Show)

Add Metadata to POTX

(Microsoft PowerPoint Template Presentation)

Add Metadata to POTM

(Microsoft PowerPoint Template File)

Add Metadata to POT

(Microsoft PowerPoint Template Files)

Add Metadata to PNG

(Portable Network Graphic)

Add Metadata to PDF

(Portable Document Format)

Add Metadata to OTF

(OpenType Font)

Add Metadata to ODT

(OpenDocument Text File Format)

Add Metadata to ODS

(OpenDocument Spreadsheet)

Add Metadata to MSG

(Outlook Message Item File)

Add Metadata to MPT

(Microsoft Project Template)

Add Metadata to MPP

(Microsoft Project File)

Add Metadata to MP3

(MP3 Audio File)

Add Metadata to MOV

(Apple QuickTime Movie)

Add Metadata to JPF

(JPEG 2000 Image)

Add Metadata to JPEG

(Joint Photographic Expert Group Image)

Add Metadata to JP2

(JPEG 2000 Core Image)

Add Metadata to HEIF

(High Efficiency Image Format)

Add Metadata to HEIC

(High Efficiency Image Format)

Add Metadata to GIF

(Graphical Interchange Format)

Add Metadata to FLV

(Flash Video File)

Add Metadata to EPUB

(Open eBook File)

Add Metadata to EML

(E-Mail Message)

Add Metadata to EMF

(Enhanced Metafile Format)

Add Metadata to DXF

(Autodesk Drawing Exchange Format)

Add Metadata to DWG

(AutoCAD Drawing File)

Add Metadata to DOTX

(Microsoft Word Template File )

Add Metadata to DOTM

(Microsoft Word 2007+ Template File)

Add Metadata to DOT

(Microsoft Word Template Files)

Add Metadata to DOCX

(Office 2007+ Word Document)

Add Metadata to DOCM

(Microsoft Word 2007 Marco File)

Add Metadata to DOC

(Microsoft Word Binary Format)

Add Metadata to DJVU

(Graphics File Format)

Add Metadata to DICOM

(Digital Imaging and Communications in Medicine)

Add Metadata to DCM

(DICOM Image)

Add Metadata to BMP

(Bitmap Image File)

Add Metadata to AVI

(Audio Video Interleave File)

Add Metadata to ASF

(Advanced Systems Format File)

Add Metadata to MKV

(Matroska Video File)

Add Metadata to ONE

(OneNote Document)

Add Metadata to DJVU

(Graphics File Format)

Back to top
 English