Changed id creation for Jobs to be more descriptive
This commit is contained in:
parent
569622099d
commit
a316ee3d48
@ -19,7 +19,7 @@ public class DownloadChapter : Job
|
|||||||
|
|
||||||
protected override string GetId()
|
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()
|
public override string ToString()
|
||||||
|
@ -21,7 +21,7 @@ public class DownloadNewChapters : Job
|
|||||||
|
|
||||||
protected override string GetId()
|
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()
|
public override string ToString()
|
||||||
|
Loading…
Reference in New Issue
Block a user