mirror of
https://github.com/Readarr/Readarr
synced 2025-12-31 12:42:25 +01:00
Fixed: Error reading PDF file
Fixes READARR-6P
This commit is contained in:
parent
6f97ca9a55
commit
9653f9bbca
1 changed files with 6 additions and 4 deletions
|
|
@ -350,11 +350,13 @@ private ParsedTrackInfo ReadPdf(string file)
|
|||
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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue