mirror of
https://github.com/C9Glax/tranga.git
synced 2025-01-12 11:27:32 +01:00
Allow Versions to lose their volume number, if site no longer lists it.
This commit is contained in:
parent
d2074fae35
commit
ec8eb40941
@ -95,9 +95,10 @@ public readonly struct Chapter : IComparable
|
|||||||
FileInfo? archive = archives.FirstOrDefault(archive =>
|
FileInfo? archive = archives.FirstOrDefault(archive =>
|
||||||
{
|
{
|
||||||
Match m = volChRex.Match(archive.Name);
|
Match m = volChRex.Match(archive.Name);
|
||||||
|
/*Uncommenting this section will only allow *Version without Volume number* -> *Version with Volume number* but not the other way
|
||||||
if (m.Groups[1].Success)
|
if (m.Groups[1].Success)
|
||||||
return m.Groups[1].Value == t.volumeNumber && m.Groups[2].Value == t.chapterNumber;
|
return m.Groups[1].Value == t.volumeNumber && m.Groups[2].Value == t.chapterNumber;
|
||||||
else
|
else*/
|
||||||
return m.Groups[2].Value == t.chapterNumber;
|
return m.Groups[2].Value == t.chapterNumber;
|
||||||
});
|
});
|
||||||
if(archive is not null && archive.FullName != correctPath)
|
if(archive is not null && archive.FullName != correctPath)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user