Skip to content

google chrome extension to add magnet link to tranmission deamon server in the context menu

License

Notifications You must be signed in to change notification settings

breucker/torrentmission

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chrome Extension Torrent from pirateBay to Transmission - 2017-04

This extension aims to put a context menu to chrome witch allow the user to add a torrent from magnet link (as in the PirateBay "download this torrent" button link) directly into transmission via the transmission-daemon RPC.

Pre-Requisite

Install

  • Goto chrome://extensions
  • Check "Developer mode"
  • Click on load non-packaged extension
  • Put the url of the transmission-daemon server in script.js (in the var "urlTransmission") and on the manifest.json file under "permissions"
  • Select this folder

Reference

Note

  • The default url for transmission web RPC is http://hostIp:hostPort/transmission/rpc so you have to put the right url in the script.js
  • To get the method right you have to stringify a json var containing arguments, ie :
params = {
       "arguments": {
           "fields": [
               "id", 
               "name"
           ]
       }, 
       "method": "torrent-get"
    };

... and send JSON.stringify(params) as request body.

Todo

  • Problem with CORS (cross origin check inside chrome) prevents to send a post request from the javascript to the transmission server ! It's a ongooing bug : https://trac.transmissionbt.com/ticket/5463 -> ok you just have to put the transmission server address in the manifest under "permissions". This brings another todo :
  • Set the url of the server in extension options.
  • React directly to a click on a "magnet" link
  • Add notification on success or error instead of alert
  • Only show the context menu if the link is a torrent

About

google chrome extension to add magnet link to tranmission deamon server in the context menu

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published