diff --git a/server/store.js b/server/store.js
index <HASH>..<HASH> 100644
--- a/server/store.js
+++ b/server/store.js
@@ -33,6 +33,10 @@ function save() {
 
 var store = _.extend(new events.EventEmitter(), {
   add: function (link, callback) {
+    if (typeof link === "string")
+      if (link.match(/^\w{32}$|^\w{40}$/))
+        link = `magnet:?xt=urn:btih:${link}`
+
     readTorrent(link, function (err, torrent) {
       if (err) {
         return callback(err);
Magnet link from hash only (#<I>)

Generate magnet from hash only

Inserting the torrent's magnet hash in the download input will work as if it was a valid magnet link

Also match a fixed length of either <I> or <I> characters