diff --git a/tv_rename.cpp b/tv_rename.cpp index b4921f4..4f1fb49 100644 --- a/tv_rename.cpp +++ b/tv_rename.cpp @@ -81,7 +81,7 @@ searchShow( const string &show, const string &language ) { #ifndef GUI // get show's ID -string getShowId( string &show, const string &language ) { +string getShowId( const string &show, const string &language ) { size_t order{}, pos{}; auto search_results = searchShow( show, language ); for ( const auto &x : search_results ) { diff --git a/tv_rename.hpp b/tv_rename.hpp index cd4e721..1036830 100644 --- a/tv_rename.hpp +++ b/tv_rename.hpp @@ -57,7 +57,7 @@ void multipleSeasons( const string &path, string &show, void allSeasons( const string &path, string &show, const string &language, const string &pattern, const size_t &flags ); -string getShowId( string &show, const string &language ); +string getShowId( const string &show, const string &language ); #endif