Ability to put magnet link in file for watchdir
Ability to put magnet link in file for watchdir
Please add the ability to use magnet links with the watchdir. I would like to put the fully qualified magnet link in a .magnet file as text and then have transmission read the file and use the magnet link inside. ( mylink.magnet -> mylink.magnet.added )
Re: Ability to put magnet link in file for watchdir
Hey rb07, your script:
... should be considered a very good workaround. It still requires users to do something extra to what I would consider base functionality. Not to mention having to open the rpc port when you might not want that.
Code: Select all
#!/bin/bash
#
# Read the last line of file, and try to add it to transmission-daemon
# Assume transmission-remote is in the PATH.
FILE=magnets.txt
TR_OPTIONS="192.168.100.3 -n admn:psswrd --downlimit 500 --uplimit 50"
# Exit if there is no file
[ ! -f "magnets.txt" ] && exit
cat $FILE |
while read m
do
transmission-remote $TR_OPTIONS --add "$m"
done
# Remove the file
rm $FILE
Re: Ability to put magnet link in file for watchdir
That script can be modified to look for .magnet files, one magnet URL per file. I think that would be an improvement, and easy to do.
About opening the RPC port, the script usually runs on the same machine as the daemon, so you can close the port on the firewall; or the easy way: you can whitelist only localhost (which is the default); you can even enable authentication, transmission-remote has no problem with that, doesn't even have to have the user/password on the script.
About opening the RPC port, the script usually runs on the same machine as the daemon, so you can close the port on the firewall; or the easy way: you can whitelist only localhost (which is the default); you can even enable authentication, transmission-remote has no problem with that, doesn't even have to have the user/password on the script.
Re: Ability to put magnet link in file for watchdir
Since the ticket is a 'wontfix', I hope here is a good enough place to post this, in the hopes that other users who were led here by google will find it
I did a very small and hack-ish patch (so it may cause other issues!) to add the ability to open magnet links if they are saved in a '.magnet' file, one link per file.
it's here - http://pastebin.com/Pf7GStJn, works with version 2.84 sources. run patch with -p1 .
I did a very small and hack-ish patch (so it may cause other issues!) to add the ability to open magnet links if they are saved in a '.magnet' file, one link per file.
it's here - http://pastebin.com/Pf7GStJn, works with version 2.84 sources. run patch with -p1 .
Re: Ability to put magnet link in file for watchdir
sthuck's patch works good. I don't see any problems with it.
Thanks sthuck
Thanks sthuck
Re: Ability to put magnet link in file for watchdir
There, right there is where the problem with the dev team (or trac moderator) is.sthuck wrote:Since the ticket is a 'wontfix'
Thanks sthuck!
-
- Posts: 1
- Joined: Tue Mar 08, 2016 6:22 am
Re: Ability to put magnet link in file for watchdir
I have adapted sthuck's patch to work with sources version 2.92. Looks like it behaves just fine. Tested with Cygwin build only, though.
Grab the diff there: http://pastebin.com/WSCXdQEx
Note that most of the watchdir logic has been moved from daemon to libtransmission in 2.9x versions.
Grab the diff there: http://pastebin.com/WSCXdQEx
Note that most of the watchdir logic has been moved from daemon to libtransmission in 2.9x versions.