diff --git a/show/tree_movie.cpp b/show/tree_movie.cpp index 58c4900..305746c 100644 --- a/show/tree_movie.cpp +++ b/show/tree_movie.cpp @@ -57,7 +57,7 @@ void Movie_by_id::func() auto const movie {tmdb::factory(id)}; - std::string plex_style {std::format("{0} ({1}) {{imdb-{2}}}{4}", movie.title, movie.release_date, movie.imdb_id, file.extension().string())}; + std::string plex_style {std::format("{} ({}) {{imdb-{}}}{}", movie.title, movie.release_date, movie.imdb_id, file.extension().string())}; util::make_ntfs_compliant(plex_style); P const old_path = file; diff --git a/show/tree_util.h b/show/tree_util.h index afabc3a..dc8b9eb 100644 --- a/show/tree_util.h +++ b/show/tree_util.h @@ -22,7 +22,7 @@ struct Number static auto get_value(std::string_view v) -> long long { long long n {}; - auto [ptr, ec] {std::from_chars(v.data(), &v.back(), n)}; + auto [ptr, ec] {std::from_chars(v.data(), &v.back() + 1, n)}; if(ec != std::errc {}) {