Amended SaveSeriesInfo to not constantly rewrite info
This commit is contained in:
parent
e3aab83dfb
commit
9baa9fb8f0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user