mirror of
https://github.com/OMGeeky/twba.uploader.git
synced 2025-12-26 16:37:23 +01:00
fix part numbers starting with 0
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -3392,7 +3392,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "twba-uploader"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"chrono",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user