[DEBUG] correct extetion parsing

This commit is contained in:
Edouard DUPIN 2017-04-14 00:06:35 +02:00
parent 5cd91b9c2a
commit b4e84394e4

View File

@ -49,7 +49,7 @@ bool pushVideoFile(zeus::service::ProxyVideo& _srv, std::string _path, std::map<
std::string extention;
if ( _path.rfind('.') != std::string::npos
&& _path.rfind('.') != 0) {
extention = etk::tolower(std::string(_path.begin()+_path.rfind('.'), _path.end()));
extention = etk::tolower(std::string(_path.begin()+_path.rfind('.')+1, _path.end()));
}
if ( extention != "avi"
&& extention != "mkv"