Fixed Range on CLI downloadchaptertask creation
This commit is contained in:
parent
7784f2024e
commit
dc83cc2194
@ -510,7 +510,7 @@ public static class Tranga_Cli
|
|||||||
if (selectedChapters.Contains('-'))
|
if (selectedChapters.Contains('-'))
|
||||||
{
|
{
|
||||||
int start = Convert.ToInt32(selectedChapters.Split('-')[0]);
|
int start = Convert.ToInt32(selectedChapters.Split('-')[0]);
|
||||||
int end = Convert.ToInt32(selectedChapters.Split('-')[1]);
|
int end = Convert.ToInt32(selectedChapters.Split('-')[1]) + 1;
|
||||||
return availableChapters[start..end];
|
return availableChapters[start..end];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user