Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing using on console application and path to book file. Fix … #15

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading