From fc8124117f15564e4b6f5777337200e656fbd46a Mon Sep 17 00:00:00 2001 From: mihaibargau <45738311+mihaibargau@users.noreply.github.com> Date: Tue, 19 Apr 2022 17:00:26 +0300 Subject: [PATCH] Fixes #1222 (#1223) Co-authored-by: mihaibargau --- API/Parser/DefaultParser.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/API/Parser/DefaultParser.cs b/API/Parser/DefaultParser.cs index d03bff199..9477fa072 100644 --- a/API/Parser/DefaultParser.cs +++ b/API/Parser/DefaultParser.cs @@ -1,4 +1,4 @@ -using System.IO; +using System.IO; using System.Linq; using API.Entities.Enums; using API.Services; @@ -132,11 +132,11 @@ public class DefaultParser if (!parsedVolume.Equals(Parser.DefaultVolume) || !parsedChapter.Equals(Parser.DefaultChapter)) { - if ((ret.Volumes.Equals(Parser.DefaultVolume) || string.IsNullOrEmpty(ret.Volumes)) && !parsedVolume.Equals(Parser.DefaultVolume)) + if ((string.IsNullOrEmpty(ret.Volumes) || ret.Volumes.Equals(Parser.DefaultVolume)) && !parsedVolume.Equals(Parser.DefaultVolume)) { ret.Volumes = parsedVolume; } - if ((ret.Chapters.Equals(Parser.DefaultChapter) || string.IsNullOrEmpty(ret.Chapters)) && !parsedChapter.Equals(Parser.DefaultChapter)) + if ((string.IsNullOrEmpty(ret.Chapters) || ret.Chapters.Equals(Parser.DefaultChapter)) && !parsedChapter.Equals(Parser.DefaultChapter)) { ret.Chapters = parsedChapter; }