Changeset 12501


Ignore:
Timestamp:
Jun 16, 2011, 2:19:39 AM (10 years ago)
Author:
livings124
Message:

#4176 Add torrent by info hash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/transmission.remote.js

    r12432 r12501  
    250250        addTorrentByUrl: function( url, options ) {
    251251                var remote = this;
     252        if(url.match(/^[0-9a-f]{40}$/i)) {
     253            url = 'magnet:?xt=urn:btih:'+url;
     254        }
    252255                var o = {
    253256                        method: 'torrent-add',
Note: See TracChangeset for help on using the changeset viewer.