mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Replaced built-in valuetypes with language keywords.
This commit is contained in:
@@ -36,14 +36,14 @@ namespace NzbDrone.Core.Download
|
||||
}
|
||||
}
|
||||
|
||||
protected abstract String AddFromNzbFile(RemoteEpisode remoteEpisode, String filename, Byte[] fileContent);
|
||||
protected abstract string AddFromNzbFile(RemoteEpisode remoteEpisode, string filename, byte[] fileContent);
|
||||
|
||||
public override String Download(RemoteEpisode remoteEpisode)
|
||||
public override string Download(RemoteEpisode remoteEpisode)
|
||||
{
|
||||
var url = remoteEpisode.Release.DownloadUrl;
|
||||
var filename = FileNameBuilder.CleanFileName(remoteEpisode.Release.Title) + ".nzb";
|
||||
|
||||
Byte[] nzbData;
|
||||
byte[] nzbData;
|
||||
|
||||
try
|
||||
{
|
||||
@@ -53,14 +53,14 @@ namespace NzbDrone.Core.Download
|
||||
}
|
||||
catch (HttpException ex)
|
||||
{
|
||||
_logger.ErrorException(String.Format("Downloading nzb for episode '{0}' failed ({1})",
|
||||
_logger.ErrorException(string.Format("Downloading nzb for episode '{0}' failed ({1})",
|
||||
remoteEpisode.Release.Title, url), ex);
|
||||
|
||||
throw new ReleaseDownloadException(remoteEpisode.Release, "Downloading nzb failed", ex);
|
||||
}
|
||||
catch (WebException ex)
|
||||
{
|
||||
_logger.ErrorException(String.Format("Downloading nzb for episode '{0}' failed ({1})",
|
||||
_logger.ErrorException(string.Format("Downloading nzb for episode '{0}' failed ({1})",
|
||||
remoteEpisode.Release.Title, url), ex);
|
||||
|
||||
throw new ReleaseDownloadException(remoteEpisode.Release, "Downloading nzb failed", ex);
|
||||
|
Reference in New Issue
Block a user