From 7fa44fba5494167cb20298e533ef816437c4b2a8 Mon Sep 17 00:00:00 2001 From: glax Date: Wed, 13 Sep 2023 23:00:27 +0200 Subject: [PATCH] Fix filename for coverimage if url contains parameters --- Tranga/MangaConnectors/MangaConnector.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Tranga/MangaConnectors/MangaConnector.cs b/Tranga/MangaConnectors/MangaConnector.cs index cc4c97f..74b49e9 100644 --- a/Tranga/MangaConnectors/MangaConnector.cs +++ b/Tranga/MangaConnectors/MangaConnector.cs @@ -238,8 +238,7 @@ public abstract class MangaConnector : GlobalBase protected string SaveCoverImageToCache(string url, byte requestType) { - string[] split = url.Split('/'); - string filename = split[^1]; + string filename = url.Split('/')[^1].Split('?')[0]; string saveImagePath = Path.Join(settings.coverImageCache, filename); if (File.Exists(saveImagePath))