Developers.TorrentInterface

From Shareaza Wiki
Jump to navigation Jump to search

Torrent Creator Interface

Users are able to choose which torrent creator they want to use in Settings -> BitTorrent -> Torrent Creator. Such torrent creators must understand the following switches in order to integrate with Shareaza.

Arguments that Shareaza passes to a torrent generator

-sourcefile "path:file" This is the file (or folder) to put into the torrent. This parameter will always be present.

-destination "path" Where the .torrent should be put. This parameter should always be present.

-tracker "tracker URL" This will be sent if the user has specified a tracker in Shareaza. If it's not there, you should pop open a window to ask for one or use a user defined default, etc.

Additional Information

If you're creating a multi-file torrent (passed as a folder), it's best not to include hidden/system files. In particular, there may be a "thumbs.db" file or a hidden "Metadata" folder. Both of these should always be ignored.

It might be worth making sure you pop open a progress bar or other indicator to let the user know it's working. Large torrents might take a while to process.