Fixed: Multi-file torrents in Vuze with different folder and file names

Fixes #2571
This commit is contained in:
Mark McDowall 2018-05-20 22:57:53 -07:00 committed by Mark McDowall
parent e407145d10
commit 1467c52e03
3 changed files with 4 additions and 15 deletions

View File

@ -172,7 +172,8 @@ namespace NzbDrone.Core.Download.Clients.Transmission
"errorString", "errorString",
"uploadedEver", "uploadedEver",
"downloadedEver", "downloadedEver",
"seedRatioLimit" "seedRatioLimit",
"fileCount"
}; };
var arguments = new Dictionary<string, object>(); var arguments = new Dictionary<string, object>();

View File

@ -3,31 +3,19 @@
public class TransmissionTorrent public class TransmissionTorrent
{ {
public int Id { get; set; } public int Id { get; set; }
public string HashString { get; set; } public string HashString { get; set; }
public string Name { get; set; } public string Name { get; set; }
public string DownloadDir { get; set; } public string DownloadDir { get; set; }
public long TotalSize { get; set; } public long TotalSize { get; set; }
public long LeftUntilDone { get; set; } public long LeftUntilDone { get; set; }
public bool IsFinished { get; set; } public bool IsFinished { get; set; }
public int Eta { get; set; } public int Eta { get; set; }
public TransmissionTorrentStatus Status { get; set; } public TransmissionTorrentStatus Status { get; set; }
public int SecondsDownloading { get; set; } public int SecondsDownloading { get; set; }
public string ErrorString { get; set; } public string ErrorString { get; set; }
public long DownloadedEver { get; set; } public long DownloadedEver { get; set; }
public long UploadedEver { get; set; } public long UploadedEver { get; set; }
public long SeedRatioLimit { get; set; } public long SeedRatioLimit { get; set; }
public int FileCount { get; set; }
} }
} }

View File

@ -30,7 +30,7 @@ namespace NzbDrone.Core.Download.Clients.Vuze
// - A multi-file torrent is downloaded in a job folder and 'outputPath' points to that directory directly. // - A multi-file torrent is downloaded in a job folder and 'outputPath' points to that directory directly.
// - A single-file torrent is downloaded in the root folder and 'outputPath' poinst to that root folder. // - A single-file torrent is downloaded in the root folder and 'outputPath' poinst to that root folder.
// We have to make sure the return value points to the job folder OR file. // We have to make sure the return value points to the job folder OR file.
if (outputPath == null || outputPath.FileName == torrent.Name) if (outputPath == null || outputPath.FileName == torrent.Name || torrent.FileCount > 1)
{ {
_logger.Trace("Vuze output directory: {0}", outputPath); _logger.Trace("Vuze output directory: {0}", outputPath);
} }