mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Merge pull request #154 from hannesbraun/season-choosing-offset
Fix offset in interactive season choosing
This commit is contained in:
commit
758db86f2f
1 changed files with 1 additions and 1 deletions
|
|
@ -646,7 +646,7 @@ pub(crate) fn interactive_season_choosing(seasons: Vec<Media<Season>>) -> Vec<Me
|
|||
let mut nums = vec![];
|
||||
for capture in input_regex.captures_iter(&user_input) {
|
||||
if let Some(single) = capture.name("single") {
|
||||
nums.push(single.as_str().parse().unwrap());
|
||||
nums.push(single.as_str().parse::<usize>().unwrap() - 1);
|
||||
} else {
|
||||
let range_from = capture.name("range_from");
|
||||
let range_to = capture.name("range_to");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue