Fixed Range on CLI downloadchaptertask creation

This commit is contained in:
glax 2023-06-08 19:25:03 +02:00
parent 7784f2024e
commit dc83cc2194

View File

@ -510,7 +510,7 @@ public static class Tranga_Cli
if (selectedChapters.Contains('-'))
{
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];
}
else