Changed id creation for Jobs to be more descriptive

This commit is contained in:
glax 2023-09-09 19:14:47 +02:00
parent 569622099d
commit a316ee3d48
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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()