mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-28 11:35:51 +00:00
Fixed: Error reading PDF file
Fixes READARR-6P
This commit is contained in:
@@ -350,11 +350,13 @@ namespace NzbDrone.Core.MediaFiles
|
||||
try
|
||||
{
|
||||
var book = PdfReader.Open(file, PdfDocumentOpenMode.InformationOnly);
|
||||
result.Authors = new List<string> { book.Info.Author };
|
||||
result.BookTitle = book.Info.Title;
|
||||
if (book.Info != null)
|
||||
{
|
||||
result.Authors = new List<string> { book.Info.Author };
|
||||
result.BookTitle = book.Info.Title;
|
||||
|
||||
_logger.Trace(book.Info.ToJson());
|
||||
_logger.Trace(book.CustomValues.ToJson());
|
||||
_logger.Trace(book.Info.ToJson());
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user