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

@@ -2,6 +2,11 @@
Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.com/en/1.0.0/) except date format. a-c-f-r-o
## Unreleased
### Fixed
- `.crypto` now supports top 5000 coins
## [3.0.10] - 01.12.2021
### Changed

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; }