diff options
-rw-r--r-- | plugins/provider/recProvider/recProvider.cpp | 4 | ||||
-rw-r--r-- | tests/Makefile | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/plugins/provider/recProvider/recProvider.cpp b/plugins/provider/recProvider/recProvider.cpp index 31d46e4..c8273fd 100644 --- a/plugins/provider/recProvider/recProvider.cpp +++ b/plugins/provider/recProvider/recProvider.cpp @@ -179,7 +179,9 @@ public: } else { int ul = uri.length(); - string folder = uri.substr(uri.find_last_of('/', ul-2)+1, ul - 7); + int ls = uri.find_last_of('/', ul-2) + 1; + + string folder = uri.substr(ls , ul - ls -1); char * str = strdup(folder.c_str()); str = ExchangeChars(str, false); metadata.SetProperty(cMetadata::Property(property::object::KEY_TITLE, string(str))); diff --git a/tests/Makefile b/tests/Makefile index 35914be..3c0850a 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,8 +1,8 @@ parser: test_parser.cpp ../common/parser.cpp g++ -o test_parser test_parser.cpp ../common/parser.cpp -g -I../include -I/usr/include -I/usr/local/include -dllloader: dll_loader.cpp ../media/pluginManager.cpp ../common/tools.cpp - g++ -o test_dllloader dll_loader.cpp ../media/pluginManager.cpp ../common/tools.cpp -g -ldl -Wl,--export-dynamic -I../include -I/usr/include -I/usr/local/include +dllloader: dll_loader.cpp + g++ -o test_dllloader dll_loader.cpp -g -I../include -I/usr/include -I/usr/local/include database: test_database.cpp g++ -o test_database test_database.cpp -g -lsqlite3 -I../include -I/usr/include -I/usr/local/include
\ No newline at end of file |