Fixed: Multi-file torrents in Vuze with different folder and file names
Fixes #2571
This commit is contained in:
parent
e407145d10
commit
1467c52e03
|
@ -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>();
|
||||||
|
|
|
@ -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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue