Skip to content

Commit

Permalink
Fix missing using on console application and path to book file. Fix b…
Browse files Browse the repository at this point in the history
…ook Annotation and Language options.
  • Loading branch information
palacex committed Jan 29, 2024
1 parent f661329 commit d49aa19
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions samples/FBLibrary.Sample.ConsoleApp/Program.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using System.Drawing;
using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Xml;
using FB2Library;
using FB2Library.Elements;

var filePath = Path.Combine("..", "..", "..", "..", "files", "test.fb2");
var filePath = Path.Combine("..", "..", "..", "..", "..", "files", "test.fb2");
await using var fileStream = new FileStream(filePath, FileMode.Open);

var readerSettings = new XmlReaderSettings
Expand Down
6 changes: 3 additions & 3 deletions src/HeaderItems/ItemTitleInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class ItemTitleInfo : ItemInfoBase
/// <summary>
/// Book's annotation
/// </summary>
public AnnotationItem Annotation { set; private get; }
public AnnotationItem Annotation { get; private set; }

/// <summary>
/// Book date , can be a range like 1990-1991
Expand All @@ -66,7 +66,7 @@ public class ItemTitleInfo : ItemInfoBase
/// <summary>
/// Book's language
/// </summary>
public string Language { set; private get; }
public string Language { get; private set; }

public CoverPage Cover { get; private set; }

Expand Down Expand Up @@ -204,7 +204,7 @@ public void Load(XElement xTitleInfo)
}
else
{
Debug.WriteLine("Language not specified in title section");
Debug.WriteLine("Language not specified in title section");
}

// Load source language
Expand Down

0 comments on commit d49aa19

Please sign in to comment.