Renamed Method GetSeriesInfo to GetSeriesInfoJson to avoid confusion with xml
This commit is contained in:
parent
a3520dfd77
commit
84542640dc
@ -65,7 +65,7 @@ public abstract class Connector
|
||||
|
||||
string seriesInfoPath = Path.Join(publicationFolder, "series.json");
|
||||
if(!File.Exists(seriesInfoPath))
|
||||
File.WriteAllText(seriesInfoPath,publication.GetSeriesInfo());
|
||||
File.WriteAllText(seriesInfoPath,publication.GetSeriesInfoJson());
|
||||
}
|
||||
|
||||
public static string CreateComicInfo(Publication publication, Chapter chapter)
|
||||
|
@ -38,7 +38,7 @@ public struct Publication
|
||||
///
|
||||
/// </summary>
|
||||
/// <returns>Serialized JSON String for series.json</returns>
|
||||
public string GetSeriesInfo()
|
||||
public string GetSeriesInfoJson()
|
||||
{
|
||||
SeriesInfo si = new (new Metadata(this.sortName, this.year.ToString() ?? string.Empty, this.status, this.description ?? ""));
|
||||
return System.Text.Json.JsonSerializer.Serialize(si);
|
||||
|
@ -76,7 +76,7 @@ public static class TaskExecutor
|
||||
|
||||
string seriesInfoPath = Path.Join(publicationFolder, "series.json");
|
||||
if(!File.Exists(seriesInfoPath))
|
||||
File.WriteAllText(seriesInfoPath,publication.GetSeriesInfo());
|
||||
File.WriteAllText(seriesInfoPath,publication.GetSeriesInfoJson());
|
||||
|
||||
foreach(Chapter newChapter in newChapters)
|
||||
connector.DownloadChapter(publication, newChapter);
|
||||
|
Loading…
Reference in New Issue
Block a user