diff --git a/MangaRipper.Core/Helper/ChapterProgress.cs b/MangaRipper.Core/Helper/ChapterProgress.cs deleted file mode 100644 index 42233a2..0000000 --- a/MangaRipper.Core/Helper/ChapterProgress.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace MangaRipper.Core -{ - public class ChapterProgress - { - public ChapterProgress(Chapter chapter, int percent) - { - Chapter = chapter; - Percent = percent; - } - public Chapter Chapter - { - get; - private set; - } - - public int Percent - { - get; - private set; - } - } -} diff --git a/MangaRipper.Core/MangaRipper.Core.csproj b/MangaRipper.Core/MangaRipper.Core.csproj index 5d0bc58..90fbc29 100644 --- a/MangaRipper.Core/MangaRipper.Core.csproj +++ b/MangaRipper.Core/MangaRipper.Core.csproj @@ -55,7 +55,6 @@ - diff --git a/MangaRipper.Core/Parser.cs b/MangaRipper.Core/Parser.cs index 5497988..ade82cc 100644 --- a/MangaRipper.Core/Parser.cs +++ b/MangaRipper.Core/Parser.cs @@ -8,10 +8,21 @@ namespace MangaRipper.Core { + /// + /// Looking for manga/chapter information in html, using regex. + /// class Parser { private static Logger logger = LogManager.GetCurrentClassLogger(); + /// + /// Looking for chapter information in html code. + /// + /// The regex with 2 captured groups. + /// The html code. + /// The group name that capture chapter name. + /// The group name that capture chapter url. + /// public IList ParseGroup(string regExp, string input, string nameGroup, string valueGroup) { logger.Info("> ParseGroup: {0}", regExp); @@ -30,6 +41,13 @@ public IList ParseGroup(string regExp, string input, string nameGroup, return list.Distinct().ToList(); } + /// + /// Using regex to capture a group with input html code. + /// + /// The regular expression + /// HTML string + /// Name of captured group. It's returned information. + /// public IList Parse(string regExp, string input, string groupName) { logger.Info("> Parse: {0}", regExp);