diff --git a/Makefile b/Makefile index 39a02fe..0c78f60 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ default: tv_rename # using libc++ because libstdc++ has a bug in regex that causes seg fault with long lines tv_rename: functions.o tv_rename.cpp - $(CXX) $(CFLAGS) -stdlib=libc++ -o tv_rename tv_rename.cpp functions.o -lcurl -lc++experimental + $(CXX) $(CFLAGS) -stdlib=libc++ -o tv_rename tv_rename.cpp functions.o -lcurl -lc++fs functions.o: functions.cpp $(CXX) $(CFLAGS) -stdlib=libc++ -c functions.cpp diff --git a/tv_rename.cpp b/tv_rename.cpp index 3d188fa..df5ef97 100644 --- a/tv_rename.cpp +++ b/tv_rename.cpp @@ -6,7 +6,7 @@ #include #include #include -#include +#include void singleSeason( const std::string &path, const std::string &show, int season, std::string url ); void multipleSeasons( const std::string &path, const std::string &show, const std::set seasons ); @@ -18,7 +18,7 @@ bool linux{false}; Curl c; int main(int argc, char** argv) { - namespace fs = std::experimental::filesystem; + namespace fs = std::filesystem; std::map languages{ {"en", "English"}, {"sv", "Svenska"}, {"no", "Norsk"}, {"da", "Dansk"}, {"fi", "Suomeksi"}, {"nl", "Nederlands"}, {"de", "Deutsch"}, {"it", "Italiano"}, {"es", "Español"}, {"fr", "Français"},