aleksey7905 / rutorrent

Automatically exported from code.google.com/p/rutorrent
0 stars 0 forks source link

Label characters encoded incorrectly #917

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When using label (d.custom1) to store, for instance, target directory -- the 
resulting path gets encoded incorrectly.

Example:
/var/downloads/rTorrent/finished/tvshows/

becomes 
%2Fvar%2Fdownloads%2FrTorrent%2Ffinished%2Ftvshows%2F/

Which means the torrent's data gets moved to a 
/home/username/%2Fvar%2Fdownloads%2FrTorrent%2Ffinished%2Ftvshows%2F/ and 
rTorrent doesn't find it and is unable to seed.

What steps will reproduce the problem?
1. Use the following method for moving torrents to custom dir when finished (in 
rtorrent.rc):

system.method.set_key = 
event.download.finished,move_complete,"d.set_directory=$d.get_custom1= 
;execute=mv,-u,$d.get_base_path=,$d.get_custom1="

2. Set label of torrent in ruTorrent to a valid path.
3. Wait for torrent to finish downloading.

What is the expected output? What do you see instead?

What environment are you using?
1. My ruTorrent version is 3.6
2. My rTorrent version is 1.9.2
3. I use web-server lighttpd on Ubuntu
4. I use browser Chrome it version is 35 on Windows 7 64-bit. Same problem with 
IE11 on same machine.

Original issue reported on code.google.com by kran...@gmail.com on 25 Jun 2014 at 2:58

GoogleCodeExporter commented 8 years ago
>When using label (d.custom1) to store, for instance, target directory -- the 
resulting path gets encoded incorrectly.

This is a correct behavior. 

>Use the following method for moving torrents

Use autotools plugin for this.

Original comment by novik65 on 26 Jun 2014 at 6:50