Amended SaveSeriesInfo to not constantly rewrite info

This commit is contained in:
glax 2023-05-19 16:25:08 +02:00
parent e3aab83dfb
commit 9baa9fb8f0

View File

@ -44,7 +44,9 @@ public abstract class Connector
public void SaveSeriesInfo(Publication publication)
{
File.WriteAllText(Path.Join(downloadLocation, publication.folderName, "series.json"),publication.GetSeriesInfo());
string seriesInfoPath = Path.Join(downloadLocation, publication.folderName, "series.json");
if(!File.Exists(seriesInfoPath))
File.WriteAllText(seriesInfoPath,publication.GetSeriesInfo());
}
internal class DownloadClient