1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-24 22:35:49 -04:00

Added: Setting for Colon Replacement Format (#2711)

Fixes #2140
Fixes #2657
This commit is contained in:
Qstick
2018-04-16 18:22:54 -04:00
committed by Leonardo Galli
parent 38932d82db
commit 210902ecb6
30 changed files with 218 additions and 291 deletions
@@ -25,10 +25,11 @@ namespace NzbDrone.Core.Download
protected TorrentClientBase(ITorrentFileInfoReader torrentFileInfoReader,
IHttpClient httpClient,
IConfigService configService,
INamingConfigService namingConfigService,
IDiskProvider diskProvider,
IRemotePathMappingService remotePathMappingService,
Logger logger)
: base(configService, diskProvider, remotePathMappingService, logger)
: base(configService, namingConfigService, diskProvider, remotePathMappingService, logger)
{
_httpClient = httpClient;
_torrentFileInfoReader = torrentFileInfoReader;
@@ -178,7 +179,7 @@ namespace NzbDrone.Core.Download
throw new ReleaseDownloadException(remoteMovie.Release, "Downloading torrent failed", ex);
}
var filename = string.Format("{0}.torrent", FileNameBuilder.CleanFileName(remoteMovie.Release.Title));
var filename = string.Format("{0}.torrent", CleanFileName(remoteMovie.Release.Title));
var hash = _torrentFileInfoReader.GetHashFromTorrentFile(torrentFile);
var actualHash = AddFromTorrentFile(remoteMovie, hash, filename, torrentFile);