Renamed Method GetSeriesInfo to GetSeriesInfoJson to avoid confusion with xml

This commit is contained in:
glax 2023-05-20 00:19:40 +02:00
parent a3520dfd77
commit 84542640dc
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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