ren1986 / transmission-remote-dotnet

Automatically exported from code.google.com/p/transmission-remote-dotnet
GNU General Public License v3.0
0 stars 0 forks source link

Attempting to open the torrent files directory only works if the torrent is complete,while using incomplete folders #372

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. start torrent
2. before completion, right click and try to open torrent share directory, it 
attempts to launch the completed download folder even though the torrent 
currently resides in the incomplete folder
3. get error

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

What version of the products are you using?
OS: windows 7 x64
Transmission: X.XX (build XXXX) unknown
Remote: 3.24 build 0

Please provide any additional information below. Feel free to
attach screenshots or sample code which demonstrates the issue being
described.

I modified the code myself at line 2247 on the 'try' launching the folder 
process.  After checking if t.finished = true i launched an alt background 
process using
BackgroundProcessStart(new 
ProcessStartInfo(t.SambaLocation.Replace((string)"Complete", 
(string)"Downloading")));
which works since my two folders are at the same depth.  I would assume you 
would fix the return from .sambalocation dependent on the torrent being 
.finished then giving the incomplete path instead.  Some think downloading, 
some think incomplete, so my solution isn't very elegant.

Original issue reported on code.google.com by idleb...@gmail.com on 30 Jan 2011 at 6:01

GoogleCodeExporter commented 8 years ago
This was from my first of two attempts to resolve the issue, but it bypasses 
the autocorrection used when showing the windows share vs the unix path.

JsonObject session = (JsonObject)Program.DaemonDescriptor.SessionData;
tmp = (string)session[ProtocolConstants.FIELD_INCOMPLETE_DIR] + "/" + 
t.TorrentName; 

Original comment by idleb...@gmail.com on 30 Jan 2011 at 6:03

GoogleCodeExporter commented 8 years ago
around line 500 in torrent.cs
'public string SambaLocation'
return something different if not complete.

Original comment by idleb...@gmail.com on 30 Jan 2011 at 6:34