@ -117,7 +117,7 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
}
catch ( DownloadClientException ex )
{
// if setCategory fails due to method not being found, then try older setLabel command for q bitto rent < v.3.3.5
// if setCategory fails due to method not being found, then try older setLabel command for q Bittor rent < v.3.3.5
if ( ex . InnerException is HttpException & & ( ex . InnerException as HttpException ) . Response . StatusCode = = HttpStatusCode . NotFound )
{
var setLabelRequest = BuildRequest ( settings ) . Resource ( "/command/setLabel" )
@ -197,12 +197,12 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
}
else
{
throw new DownloadClientException ( "Failed to connect to qBit T orrent, check your settings.", ex ) ;
throw new DownloadClientException ( "Failed to connect to qBit t orrent, check your settings.", ex ) ;
}
}
catch ( WebException ex )
{
throw new DownloadClientException ( "Failed to connect to qBit T orrent, please check your settings.", ex ) ;
throw new DownloadClientException ( "Failed to connect to qBit t orrent, please check your settings.", ex ) ;
}
return response . Content ;
@ -239,23 +239,23 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
_logger . Debug ( "qbitTorrent authentication failed." ) ;
if ( ex . Response . StatusCode = = HttpStatusCode . Forbidden )
{
throw new DownloadClientAuthenticationException ( "Failed to authenticate with q bitT orrent.", ex ) ;
throw new DownloadClientAuthenticationException ( "Failed to authenticate with q Bitt orrent.", ex ) ;
}
throw new DownloadClientException ( "Failed to connect to qBit T orrent, please check your settings.", ex ) ;
throw new DownloadClientException ( "Failed to connect to qBit t orrent, please check your settings.", ex ) ;
}
catch ( WebException ex )
{
throw new DownloadClientUnavailableException ( "Failed to connect to qBit T orrent, please check your settings.", ex ) ;
throw new DownloadClientUnavailableException ( "Failed to connect to qBit t orrent, please check your settings.", ex ) ;
}
if ( response . Content ! = "Ok." ) // returns "Fails." on bad login
{
_logger . Debug ( "qbitTorrent authentication failed." ) ;
throw new DownloadClientAuthenticationException ( "Failed to authenticate with q bitT orrent.") ;
throw new DownloadClientAuthenticationException ( "Failed to authenticate with q Bitt orrent.") ;
}
_logger . Debug ( "q bitT orrent authentication succeeded.") ;
_logger . Debug ( "q Bitt orrent authentication succeeded.") ;
cookies = response . GetCookies ( ) ;