Open GoogleCodeExporter opened 8 years ago
So no revision from creator - pity :( transmission-remote-dotnet-r700-installer
has no problems with samba share mappings but in newer versions this problem
appears out of the box. Try to check in registry that / is added to linux
directory although it shouldn't. For now I'll stick with older version coz IT
works.
Original comment by ml.ci...@gmail.com
on 9 Feb 2011 at 5:02
I learn at uni, and i have to work to pay my semester. I deal with this
project, as i can. But this issue need more time... :(
Original comment by elso.and...@gmail.com
on 14 Feb 2011 at 8:48
Ok I understand, not a problem :) Easiest fix would be to compare latest
version with revision r700 in which it (network share) works.
Original comment by ml.ci...@gmail.com
on 15 Feb 2011 at 12:02
Hi Folks,
I dont know if I have the same issue as you guys or not; but I fixed it by
changing a line in Torrent.cs:SambaLocation:Get() to : if
(key.StartsWith(downloadDir))
From:
public string SambaLocation
{
get
{
string downloadDir = this.DownloadDir;
string name = this.Files.Count > 1 ? this.TorrentName : "";
Dictionary<string, string> mappings = Program.Settings.Current.SambaShareMappings;
foreach (string key in mappings.Keys)
{
if (downloadDir.StartsWith(key))
return String.Format(@"{0}\{1}{2}", (string)mappings[key], downloadDir.Length > key.Length ? downloadDir.Substring(key.Length + 1).Replace(@"/", @"\") + @"\" : null, name);
}
return null;
}
}
To:
public string SambaLocation
{
get
{
string downloadDir = this.DownloadDir;
string name = this.Files.Count > 1 ? this.TorrentName : "";
Dictionary<string, string> mappings = Program.Settings.Current.SambaShareMappings;
foreach (string key in mappings.Keys)
{
if (key.StartsWith(downloadDir))
return String.Format(@"{0}\{1}{2}", (string)mappings[key], downloadDir.Length > key.Length ? downloadDir.Substring(key.Length + 1).Replace(@"/", @"\") + @"\" : null, name);
}
return null;
}
}
On my system (server is version 1.92 on dd-wrt)
Torrent.downloadDir has no trailing "/" but SambaShareMapping does, hence the
.StartsWith Fails.
Regards,
Ray
Patch has other updates to do with threading and error handling:
See issue 59
(http://code.google.com/p/transmission-remote-dotnet/issues/detail?id=379)
Original comment by rayfitzh...@gmail.com
on 9 Mar 2011 at 4:41
Attachments:
sorry issue 379 ..obviously
Original comment by rayfitzh...@gmail.com
on 9 Mar 2011 at 4:44
I see trivial updates on graphics but not with samba share, maybe incorporate
patch made by rayfitzharris to make it work.
Original comment by ml.ci...@gmail.com
on 18 Mar 2011 at 8:49
The samba share opening issue is fixed by r786 (i hope :-D), as follows:
if the torrent has more files, T put this files into a subdirectory called as
the torrent name. "Open on Network Share" open this folder, but "Open Folder on
Network Share" opens the folder who has the subdirectory.
If the torrent has only one file, T doesnt put the file into a subdirectory. So
"Open on Network Share" and "Open Folder on Network Share" opens the directory
where the torrent lives. (I'm still thinking about that the "Open on Network
Share" open the one file, i sleep over it...)
Original comment by elso.and...@gmail.com
on 7 Feb 2012 at 2:07
Original issue reported on code.google.com by
ml.ci...@gmail.com
on 26 Jan 2011 at 10:40Attachments: