Opened 12 years ago

Closed 12 years ago

#4176 closed Enhancement (fixed)

Add torrent by info hash

Reported by: fx Owned by: fx
Priority: Normal Milestone: 2.32
Component: Web Client Version:
Severity: Normal Keywords:


Id like to be able to add torrents just by info hash instead of full url or a full magnet link:

To download from just a hash i simply prepended a magnet link to the front of the url:

if(url.match(/^[0-9a-f]{40}$/i)) {
    url = 'magnet:?xt=urn:btih:'+url;

I have put this in AddTorrentByUrl? function in transmission.remote.js but im sure it could have a more fitting home

Attachments (1)

AddTorrentsByInfoHashMagnetLink.patch (414 bytes) - added by fx 12 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 12 years ago by fx

Been testing this for about 2 months, and works pretty sweet. For popular torrents (or if you have lots of peers connected) we just share hashes around

comment:2 Changed 12 years ago by fx

  • Owner set to fx

comment:3 Changed 12 years ago by bulljit


i personally don't use magnet links... but very cool! well done.

Last edited 12 years ago by bulljit (previous) (diff)

comment:4 Changed 12 years ago by livings124

  • Milestone changed from None Set to 2.32
  • Resolution set to fixed
  • Status changed from new to closed



Note: See TracTickets for help on using tickets.