Here are my settings:
Code: Select all
$ defaults read org.m0k.transmission |grep script-torrent
"script-torrent-done-enabled" = 1;
"script-torrent-done-filename" = "/Users/anville/bin/post_process_torrents.sh";
Code: Select all
$ defaults read org.m0k.transmission |grep script-torrent
"script-torrent-done-enabled" = 1;
"script-torrent-done-filename" = "/Users/anville/bin/post_process_torrents.sh";
Just because you add it to the config file doesn't mean Transmission will honor it like the config files of the other platforms. I just did
Code: Select all
defaults write org.m0k.transmission upload-slots-per-torrent 2
Code: Select all
transmission-remote localhost --torrent-done-script "/Users/anville/bin/post_process_torrents.sh"
Yep. I quit Transmission, made the change, and restarted. What kind of tester do you think I amx190 wrote: Not saying you're wrong, but did you quit Transmission before making the edit. Also, I believe, according to Longinuus this script thing should work.
I currently don't see #1 anywhere in my ~/Library folder. I'm thinking that is created by the OS.x190 wrote:Thanks for correcting my grammar, Sir! I'm dying to test this script possibility on delete .part files. How does one refer to the torrent name--$TORRENT_ID?
Also since T on OS X uses no less than 3 .plist files, I wonder if one needs to be more specific when doing the defaults write bit.
~/Library/Preferences/org.m0k.transmission.LSSharedFileList.plist
~/Library/Preferences/org.m0k.transmission.plist
~/Library/Application Support/Transmission/Transfers.plist
x190, as the long as the path is correct, it shouldn't matter where your script goes!Path should be /bin/post_process_torrents.sh, right?
Code: Select all
transmission-remote localhost --torrent-done-script "/Users/anville/bin/post_process_torrents.sh"
No. Since "transmission-remote" talks to the torrent daemon directly, it won't work unless the daemon is running. That's why I had to make a cron hack to keep "reminding ' it of the script. Every time I restart the app, it "forgets".x190 wrote:Regarding script persistence did you stop (quit) the daemon (or client)
Code: Select all
#!/bin/sh
{
CONVERTOR=/.sw/bin/ffmpeg
CODEC_ARGS="-vcodec copy -acodec copy -f mp4"
EPISODE=`echo $TR_TORRENT_NAME | sed 's:\(S[0-9]*E[0-9]*\).*:\1:'`
SERIES=`echo $TR_TORRENT_NAME | sed 's:\(S[0-9]*\)[[:print:]]*:\1:'`
if [ ! -d "$TR_TORRENT_DIR/Fixed/$SERIES" ]; then
mkdir $TR_TORRENT_DIR/Fixed/$SERIES
fi
$CONVERTOR -i $TR_TORRENT_DIR/$TR_TORRENT_NAME $CODEC_ARGS $TR_TORRENT_DIR/Fixed/$SERIES/$EPISODE.m4v
} &