From fb96d02f5871d41a81ff67a973af158c9078e445 Mon Sep 17 00:00:00 2001 From: Zero Date: Sun, 22 Jan 2017 17:20:52 +0800 Subject: [PATCH] Version 2.2 --- README.md | 7 +- syosetuDownloader/Constants.cs | 9 +- syosetuDownloader/MainWindow.xaml | 9 +- syosetuDownloader/MainWindow.xaml.cs | 110 +++++++++++------- syosetuDownloader/Syousetsu.cs | 164 +++++++++++++++++++++++++-- syosetuDownloader/format.ini | 4 +- 6 files changed, 240 insertions(+), 63 deletions(-) diff --git a/README.md b/README.md index 2a21544..c3ca577 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,9 @@ Download chapters from Syosetsu ni Narou - Option to specify a chapter range i.e. if you want to only download say chapters 3-10 - Download mutiple series - Clicking the progress bar will cancel the download job -- Clicking the novel title will open it download folder +- Clicking the novel title will open its download folder - Custom filename (see format.ini for details) +- Chapter list generation (nxxxxxx.htm) **Notes:** - If no chapter range is specified it will download everything @@ -17,8 +18,6 @@ Download chapters from Syosetsu ni Narou - No volume support - "chapter 1" is "http://*.syosetu.com/xxxxxxx/1" - Replaces illegal characters on filename with "□" - -**ToDo:** -- Table of contents creation +- No chapter list generation for wayback machine **[Releases Here](https://github.com/LordZero25/Syosetu-Downloader/releases/)** diff --git a/syosetuDownloader/Constants.cs b/syosetuDownloader/Constants.cs index 3623c41..79ba4ef 100644 --- a/syosetuDownloader/Constants.cs +++ b/syosetuDownloader/Constants.cs @@ -31,6 +31,7 @@ public enum FileType { Text, HTML }; string _link = String.Empty; string _seriesCode = String.Empty; private string _fileNameFormat = String.Empty; + private List chapterTitle = new List(); public CookieContainer SyousetsuCookie { @@ -46,7 +47,7 @@ public CookieContainer SyousetsuCookie } } - public string Title + public string SeriesTitle { get { return _title; } set { _title = value; } @@ -94,5 +95,11 @@ public string FilenameFormat get { return _fileNameFormat; } set { _fileNameFormat = value; } } + + public List ChapterTitle + { + get { return chapterTitle; } + set { chapterTitle = value; } + } } } diff --git a/syosetuDownloader/MainWindow.xaml b/syosetuDownloader/MainWindow.xaml index 344752c..728dd48 100644 --- a/syosetuDownloader/MainWindow.xaml +++ b/syosetuDownloader/MainWindow.xaml @@ -1,7 +1,7 @@  + Title="Narou Downloader" ResizeMode="CanMinimize" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="532" d:DesignWidth="317" SizeToContent="WidthAndHeight" WindowStartupLocation="CenterScreen">