From a316ee3d4836fdece77a82c50bacc091b832d621 Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 9 Sep 2023 19:14:47 +0200 Subject: [PATCH] Changed id creation for Jobs to be more descriptive --- Tranga/Jobs/DownloadChapter.cs | 2 +- Tranga/Jobs/DownloadNewChapters.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tranga/Jobs/DownloadChapter.cs b/Tranga/Jobs/DownloadChapter.cs index 357e7ba..6ede691 100644 --- a/Tranga/Jobs/DownloadChapter.cs +++ b/Tranga/Jobs/DownloadChapter.cs @@ -19,7 +19,7 @@ public class DownloadChapter : Job protected override string GetId() { - return Convert.ToBase64String(Encoding.ASCII.GetBytes(string.Concat(this.GetType().ToString(), chapter.parentManga.internalId, chapter.chapterNumber))); + return $"{GetType()}-{chapter.parentManga.internalId}-{chapter.chapterNumber}"; } public override string ToString() diff --git a/Tranga/Jobs/DownloadNewChapters.cs b/Tranga/Jobs/DownloadNewChapters.cs index b41746d..b00e53d 100644 --- a/Tranga/Jobs/DownloadNewChapters.cs +++ b/Tranga/Jobs/DownloadNewChapters.cs @@ -21,7 +21,7 @@ public class DownloadNewChapters : Job protected override string GetId() { - return Convert.ToBase64String(Encoding.ASCII.GetBytes(string.Concat(this.GetType().ToString(), manga.internalId))); + return $"{GetType()}-{manga.internalId}"; } public override string ToString()