mirror of
https://github.com/C9Glax/tranga.git
synced 2025-07-07 03:14:17 +02:00
Rework TrangaSettings
This commit is contained in:
@ -140,9 +140,9 @@ public struct Manga
|
||||
latestChapterDownloaded = latestChapterDownloaded < chapterNumber ? chapterNumber : latestChapterDownloaded;
|
||||
}
|
||||
|
||||
public void SaveSeriesInfoJson(string downloadDirectory, bool overwrite = false)
|
||||
public void SaveSeriesInfoJson(bool overwrite = false)
|
||||
{
|
||||
string publicationFolder = CreatePublicationFolder(downloadDirectory);
|
||||
string publicationFolder = CreatePublicationFolder(TrangaSettings.downloadLocation);
|
||||
string seriesInfoPath = Path.Join(publicationFolder, "series.json");
|
||||
if(overwrite || (!overwrite && !File.Exists(seriesInfoPath)))
|
||||
File.WriteAllText(seriesInfoPath,this.GetSeriesInfoJson());
|
||||
|
Reference in New Issue
Block a user