Removed .novel command as it no longer works

This commit is contained in:
Kwoth
2021-09-12 13:31:57 +02:00
parent d028e23bc1
commit 37cdea4f6a
4 changed files with 31 additions and 34 deletions

View File

@@ -59,7 +59,10 @@ namespace NadekoBot.Modules.Searches.Services
query = query.Replace(" ", "-", StringComparison.InvariantCulture);
try
{
var link = "http://www.novelupdates.com/series/" + Uri.EscapeDataString(query.Replace("/", " ", StringComparison.InvariantCulture));
var link = "https://www.novelupdates.com/series/" + Uri.EscapeDataString(query
.Replace(" ", "-")
.Replace("/", " ")
);
link = link.ToLowerInvariant();
var (ok, data) = await _cache.TryGetNovelDataAsync(link).ConfigureAwait(false);
if (!ok)