fix part numbers starting with 0

This commit is contained in:
OMGeeky
2024-04-24 00:21:14 +02:00
parent 1eb1396c5a
commit d1415d0f8e
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@@ -3392,7 +3392,7 @@ dependencies = [
[[package]]
name = "twba-uploader"
version = "0.2.0"
version = "0.2.1"
dependencies = [
"anyhow",
"chrono",

View File

@@ -1,6 +1,6 @@
[package]
name = "twba-uploader"
version = "0.2.0"
version = "0.2.1"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@@ -244,7 +244,7 @@ fn get_part_number_from_path(path: &Path) -> Result<usize> {
let part_number = part_number
.parse::<usize>()
.context("could not parse path")?;
return Ok(part_number);
return Ok(part_number + 1);
}
warn!("path has not the expected extension (.mp4): {:?}", path);
}