From 8009c3fcb633a5c1a161a7dfb9c09af9614aa394 Mon Sep 17 00:00:00 2001 From: zvon Date: Tue, 2 Oct 2018 00:01:30 +0200 Subject: [PATCH] Actually print show's name --- tv_rename.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tv_rename.cpp b/tv_rename.cpp index 0f97414..3d188fa 100644 --- a/tv_rename.cpp +++ b/tv_rename.cpp @@ -95,7 +95,7 @@ int main(int argc, char** argv) { path = fs::absolute(path); if( show.empty() ) { - show = std::regex_replace(path, std::regex(".*/"), ""); + show = std::regex_replace(fs::canonical(path).c_str(), std::regex(".*/"), ""); std::cout << "Is this the right show name? " << show << std::endl; std::string response; std::cin >> response;