you could try something like this..
#!/bin/bash
if [ "$TR_TORRENT_DIR" = "/transmission/data" ]; then
<insert unrar script here>
fi
unrar script only runs if torrent download directory is /transmission/data , otherwise it does nothing.
I was wondering about the $TR_TORRENT_DIR string ...
Search found 3 matches
- Wed Feb 01, 2012 9:07 am
- Forum: General
- Topic: Unrar script for JUST the default download dir?
- Replies: 2
- Views: 3341
- Wed Feb 01, 2012 12:08 am
- Forum: General
- Topic: Unrar script for JUST the default download dir?
- Replies: 2
- Views: 3341
Unrar script for JUST the default download dir?
Hi all!
I've set up some automation that results in all my tv-show and movie downloads end up in the default download destination "/transmission/data/".
I'd like to make or use an allready made script to unrar these to a destination dir.. e.g. "/transmission/media/".
BUT... All other torrent ...
I've set up some automation that results in all my tv-show and movie downloads end up in the default download destination "/transmission/data/".
I'd like to make or use an allready made script to unrar these to a destination dir.. e.g. "/transmission/media/".
BUT... All other torrent ...
- Tue Jan 31, 2012 10:37 pm
- Forum: General
- Topic: Unrar and cleanup script - UPDATE 2025.01.29
- Replies: 143
- Views: 372148
Re: Unrar and cleanup script - UPDATE 2011.10.24
Hi!
I'm relatively new to linux scripting, and was wondering if it is possible to get the script to only unrar files IF the file is in a given folder?
I have set up some automation on tv-series download with a watch folder for new .torrent files.. I would like the script to unrar these tv series ...
I'm relatively new to linux scripting, and was wondering if it is possible to get the script to only unrar files IF the file is in a given folder?
I have set up some automation on tv-series download with a watch folder for new .torrent files.. I would like the script to unrar these tv series ...