mirror of
https://github.com/Radarr/Radarr
synced 2026-03-03 19:12:18 +01:00
Fixed: Multi-file torrents in Vuze with different folder and file names
Fixes #2571
This commit is contained in:
parent
e407145d10
commit
1467c52e03
3 changed files with 4 additions and 15 deletions
|
|
@ -172,7 +172,8 @@ private TransmissionResponse GetTorrentStatus(IEnumerable<string> hashStrings, T
|
|||
"errorString",
|
||||
"uploadedEver",
|
||||
"downloadedEver",
|
||||
"seedRatioLimit"
|
||||
"seedRatioLimit",
|
||||
"fileCount"
|
||||
};
|
||||
|
||||
var arguments = new Dictionary<string, object>();
|
||||
|
|
|
|||
|
|
@ -3,31 +3,19 @@
|
|||
public class TransmissionTorrent
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string HashString { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string DownloadDir { get; set; }
|
||||
|
||||
public long TotalSize { get; set; }
|
||||
|
||||
public long LeftUntilDone { get; set; }
|
||||
|
||||
public bool IsFinished { get; set; }
|
||||
|
||||
public int Eta { get; set; }
|
||||
|
||||
public TransmissionTorrentStatus Status { get; set; }
|
||||
|
||||
public int SecondsDownloading { get; set; }
|
||||
|
||||
public string ErrorString { get; set; }
|
||||
|
||||
public long DownloadedEver { get; set; }
|
||||
|
||||
public long UploadedEver { get; set; }
|
||||
|
||||
public long SeedRatioLimit { get; set; }
|
||||
public int FileCount { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ protected override OsPath GetOutputPath(OsPath outputPath, TransmissionTorrent t
|
|||
// - 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.
|
||||
// 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue