diff --git a/extrator/src/extratorTXT.cpp b/extrator/src/extratorTXT.cpp index 3b1bf2c..bc7b2aa 100644 --- a/extrator/src/extratorTXT.cpp +++ b/extrator/src/extratorTXT.cpp @@ -10,7 +10,6 @@ **************************************************************************/ #include "extratorTXT.h" -#include ExtratorTXT::ExtratorTXT(){ listeners = new list(); @@ -56,6 +55,10 @@ void ExtratorTXT::encodingfiletoUTF8() { system(sedcmd.c_str()); } +void ExtratorTXT::remove_quotes(std::string &str) { + str.erase(std::remove(str.begin(), str.end(), '\"'), str.end()); +} + void ExtratorTXT::setFilePath(char* path){ this->filePath = path; encodingfiletoUTF8(); @@ -87,6 +90,7 @@ void ExtratorTXT::Run(){ getline(ifs_, current_line, '\n'); if (current_line.length() != 0) { + remove_quotes(current_line); notifyListeners((unsigned char*) current_line.c_str()); line_index++; } diff --git a/extrator/src/include/extratorTXT.h b/extrator/src/include/extratorTXT.h index 4a79e59..dfd6b23 100644 --- a/extrator/src/include/extratorTXT.h +++ b/extrator/src/include/extratorTXT.h @@ -75,6 +75,7 @@ public: void Run(); private: + void remove_quotes(std::string &str); void encodingfiletoUTF8(); list *listeners; diff --git a/renderer/src/renderer.cpp b/renderer/src/renderer.cpp index 263e515..d2fd193 100644 --- a/renderer/src/renderer.cpp +++ b/renderer/src/renderer.cpp @@ -1,5 +1,4 @@ #include "renderer.h" -#include Renderer::Renderer(char* path_Contents, char* id) { this->pathOutVideo = path_Contents; @@ -103,7 +102,7 @@ void Renderer::exportGlosa() { strcpy(glosaBff, glosaCpy.c_str()); try { cSocket->write(glosaBff, size); //Envia a glosa formatada p/ o player - usleep(1500); + usleep(5000); }catch(lavidlib::IOException &ex){ throw lavidlib::RuntimeException("Erro ao enviar glosa"); } -- libgit2 0.21.2