|
|
@ -123,7 +123,7 @@ namespace ndview
|
|
|
|
await using (await index.TagAsync("article", token, ("id", post.PostNumber.ToString())))
|
|
|
|
await using (await index.TagAsync("article", token, ("id", post.PostNumber.ToString())))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
await WriteHeader(index, post, token);
|
|
|
|
await WriteHeader(index, post, token);
|
|
|
|
if (post.ImageURL != null)
|
|
|
|
if (!post.IsImageEncrypted && post.ImageURL != null)
|
|
|
|
await WriteImageFigure(index, post, token);
|
|
|
|
await WriteImageFigure(index, post, token);
|
|
|
|
|
|
|
|
|
|
|
|
await WriteBody(index, post, token);
|
|
|
|
await WriteBody(index, post, token);
|
|
|
@ -256,7 +256,7 @@ namespace ndview
|
|
|
|
|
|
|
|
|
|
|
|
var imgExtract = !thread.IsImageEncrypted && thread.ImageURL != null ? ExtractImage(thread, img, threadImgEnc || wasEnc, token) : Task.CompletedTask;
|
|
|
|
var imgExtract = !thread.IsImageEncrypted && thread.ImageURL != null ? ExtractImage(thread, img, threadImgEnc || wasEnc, token) : Task.CompletedTask;
|
|
|
|
|
|
|
|
|
|
|
|
if (thread.ImageURL == null)
|
|
|
|
if (!thread.IsImageEncrypted && thread.ImageURL == null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var ocol = Console.ForegroundColor;
|
|
|
|
var ocol = Console.ForegroundColor;
|
|
|
|
Console.ForegroundColor = ConsoleColor.Yellow;
|
|
|
|
Console.ForegroundColor = ConsoleColor.Yellow;
|
|
|
@ -269,7 +269,7 @@ namespace ndview
|
|
|
|
await index.AppendHtml($@"<a href='#{thread.PostNumber}' class='script expand'></a>");
|
|
|
|
await index.AppendHtml($@"<a href='#{thread.PostNumber}' class='script expand'></a>");
|
|
|
|
|
|
|
|
|
|
|
|
await WriteHeader(index, thread, token);
|
|
|
|
await WriteHeader(index, thread, token);
|
|
|
|
if (thread.ImageURL != null)
|
|
|
|
if (!thread.IsImageEncrypted && thread.ImageURL != null)
|
|
|
|
await WriteImageFigure(index, thread, token);
|
|
|
|
await WriteImageFigure(index, thread, token);
|
|
|
|
|
|
|
|
|
|
|
|
await WriteBody(index, thread, token);
|
|
|
|
await WriteBody(index, thread, token);
|
|
|
|