I have too many torrent download and seeding. (to keep upload ratio on some PT sites). and I need to catalogize these files and rename the directory name and/or filenames to more familier names. (eg. add Chinese name, movie formats, movie year etc).
I suggest that transmission add this feature to make local file arrangements flexable. methos to implement this may save the local file mapping infomation to .resume files. That will keep tracking localfile locations.
(Q: why i need this? A: BitTorrent is NOT only downloading, but also SHARING)
Another feature I request is local filesystem charset settings. I HAVE TO use local charsets insdeed of UTF-8 encoding. This may implemented by hooking any local file open/directory search function. Done by iconv_open or so functions.
Thanks, looking forward for develop team responese.
Request: Local filename/directory mapping and local charset
Re: Request: Local filename/directory mapping and local char
local charset convertion should be done on message log too.
Re: Request: Local filename/directory mapping and local char
currently I do filename translation to local charset by using a "finish script".
but when file and/or directory was renamed. no future seeding is possiable. so i just stop seeding by sending back a stop command.
but when file and/or directory was renamed. no future seeding is possiable. so i just stop seeding by sending back a stop command.
Code: Select all
#! /bin/sh
# onfinish.sh by starmoon
LOGFILE=/root/tr.log
#echo `date "+[%F %T]"` $TR_TORRENT_DIR $TR_TORRENT_HASH $TR_TORRENT_NAME >> $LOGFILE
PWD=`pwd`
cd "$TR_TORRENT_DIR"
if [ -e "$TR_TORRENT_NAME" ]; then
NAME=$(echo $TR_TORRENT_NAME | iconv -f utf8 -t gb18030)
echo -n `date "+[%F %T]"` $TR_TORRENT_HASH $NAME >> $LOGFILE
chown -R --reference=. "$TR_TORRENT_NAME"
CNT=$(convmv -f utf8 -t cp936 -r --notest "$TR_TORRENT_NAME" | wc -l)
if [ $CNT -gt 0 ]; then
echo ' *' >> $LOGFILE
transmission-remote -n admin:pass -t $TR_TORRENT_ID --stop &
else
echo >> $LOGFILE
fi
fi
cd $PWD