Fixed .rule34, closes #320

This commit is contained in:
Kwoth
2021-12-07 23:44:57 +01:00
parent 0187dd57ac
commit cf9792f24a
3 changed files with 7 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ namespace NadekoBot.Modules.Nsfw.Common
return new();
return images
.Where(img => !string.IsNullOrWhiteSpace(img.Directory) && !string.IsNullOrWhiteSpace(img.Image))
.Where(img => !string.IsNullOrWhiteSpace(img.Image))
.ToList();
}
}

View File

@@ -3,7 +3,7 @@
public class Rule34Object : IImageData
{
public string Image { get; init; }
public string Directory { get; init; }
public int Directory { get; init; }
public string Tags { get; init; }
public int Score { get; init; }