Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Lepper committed Nov 11, 2021
2 parents bf6cd54 + ca17640 commit 321f206
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion show/tree_movie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void Movie_by_id::func()

auto const movie {tmdb::factory<tmdb::Movie>(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;
Expand Down
2 changes: 1 addition & 1 deletion show/tree_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {})
{
Expand Down

0 comments on commit 321f206

Please sign in to comment.