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;