mirror of
https://github.com/Readarr/Readarr
synced 2025-12-21 07:45:52 +01:00
New: Support digest authentication with Calibre
This commit is contained in:
parent
1e2d931f9a
commit
d2fa75dee5
1 changed files with 6 additions and 7 deletions
|
|
@ -13,7 +13,6 @@
|
|||
using NzbDrone.Core.MediaCover;
|
||||
using NzbDrone.Core.MediaFiles;
|
||||
using NzbDrone.Core.RemotePathMappings;
|
||||
using NzbDrone.Core.Rest;
|
||||
|
||||
namespace NzbDrone.Core.Books.Calibre
|
||||
{
|
||||
|
|
@ -70,7 +69,7 @@ public CalibreImportJob AddBook(BookFile book, CalibreSettings settings)
|
|||
|
||||
return _httpClient.Post<CalibreImportJob>(request).Resource;
|
||||
}
|
||||
catch (RestException ex)
|
||||
catch (HttpException ex)
|
||||
{
|
||||
throw new CalibreException("Unable to add file to calibre library: {0}", ex, ex.Message);
|
||||
}
|
||||
|
|
@ -177,7 +176,7 @@ public CalibreBookData GetBookData(int calibreId, CalibreSettings settings)
|
|||
|
||||
return _httpClient.Get<CalibreBookData>(request).Resource;
|
||||
}
|
||||
catch (RestException ex)
|
||||
catch (HttpException ex)
|
||||
{
|
||||
throw new CalibreException("Unable to add file to calibre library: {0}", ex, ex.Message);
|
||||
}
|
||||
|
|
@ -199,7 +198,7 @@ public long ConvertBook(int calibreId, CalibreConversionOptions options, Calibre
|
|||
|
||||
return jobId;
|
||||
}
|
||||
catch (RestException ex)
|
||||
catch (HttpException ex)
|
||||
{
|
||||
throw new CalibreException("Unable to start calibre conversion: {0}", ex, ex.Message);
|
||||
}
|
||||
|
|
@ -221,7 +220,7 @@ public CalibreBook GetBook(int calibreId, CalibreSettings settings)
|
|||
|
||||
return book;
|
||||
}
|
||||
catch (RestException ex)
|
||||
catch (HttpException ex)
|
||||
{
|
||||
throw new CalibreException("Unable to connect to calibre library: {0}", ex, ex.Message);
|
||||
}
|
||||
|
|
@ -256,7 +255,7 @@ public List<string> GetAllBookFilePaths(CalibreSettings settings)
|
|||
|
||||
return result;
|
||||
}
|
||||
catch (RestException ex)
|
||||
catch (HttpException ex)
|
||||
{
|
||||
throw new CalibreException("Unable to connect to calibre library: {0}", ex, ex.Message);
|
||||
}
|
||||
|
|
@ -270,7 +269,7 @@ public void GetLibraryInfo(CalibreSettings settings)
|
|||
var request = builder.Build();
|
||||
var response = _httpClient.Execute(request);
|
||||
}
|
||||
catch (RestException ex)
|
||||
catch (HttpException ex)
|
||||
{
|
||||
throw new CalibreException("Unable to connect to calibre library: {0}", ex, ex.Message);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue