How to upload a torrent file programmatically
We have a client with an upload site we built (using Ruby/RoR) and he wants to add the ability to upload files from a torrent link.
Right now you can upload files from a PC or URL.. what is the best way to programmatically upload a file from a torrent link?
It seems that we would need to first upload the torrent in a tmp directory, then extract the file.. and move that file to the uploaded directory..
I appreciate input from anyone with experience in this (in any programming lang.)
Feature: In order to upload a file from a torrent link A开发者_运维技巧s a registered user of the site I want to be able to paste the URL of a torrent file Then have that file uploaded to the website, not the torrent file itself.
Given a torrent file or magnet link, it's possible to obtain the file list for the torrent. The uploader could then specify which files in the torrent to upload. The server side can download the specified files in the torrent using bittorrent.
A link to a torrent file is as good as the torrent file itself, assuming the server can fetch from that address.
精彩评论