diff --git a/extrator/src/extratorSRT.cpp b/extrator/src/extratorSRT.cpp index 640d983..2de862b 100644 --- a/extrator/src/extratorSRT.cpp +++ b/extrator/src/extratorSRT.cpp @@ -39,7 +39,7 @@ void ExtratorSRT::encodingfiletoUTF8() { .append(this->filePath); system(recmd.c_str()); - string sedcmd = "sed -i $'s/\r$//' "; + string sedcmd = "sed -i 's/\r$//;$d' "; sedcmd.append(this->filePath); system(sedcmd.c_str()); diff --git a/extrator/src/extratorTXT.cpp b/extrator/src/extratorTXT.cpp index 6e55d5e..5b520cc 100644 --- a/extrator/src/extratorTXT.cpp +++ b/extrator/src/extratorTXT.cpp @@ -50,7 +50,7 @@ void ExtratorTXT::encodingfiletoUTF8() { .append(this->filePath); system(recmd.c_str()); - string sedcmd = "sed -i $'s/\r$//' "; + string sedcmd = "sed -i 's/\r$//;$d' "; sedcmd.append(this->filePath); system(sedcmd.c_str()); } diff --git a/extrator/src/extratorVTT.cpp b/extrator/src/extratorVTT.cpp index bf89017..9083a0d 100644 --- a/extrator/src/extratorVTT.cpp +++ b/extrator/src/extratorVTT.cpp @@ -39,7 +39,7 @@ void ExtratorVTT::encodingfiletoUTF8() { .append(this->filePath); system(recmd.c_str()); - string sedcmd = "sed -i $'s/\r$//' "; + string sedcmd = "sed -i 's/\r$//;$d' "; sedcmd.append(this->filePath); system(sedcmd.c_str()); } diff --git a/renderer/src/renderer.cpp b/renderer/src/renderer.cpp index 534a47a..761cbf1 100644 --- a/renderer/src/renderer.cpp +++ b/renderer/src/renderer.cpp @@ -32,7 +32,7 @@ void Renderer::executeServerScript() { //Temporário. 'Matar' todos os processos do player. string killcmd = "killall -9 videoCreator.x86_64"; system(killcmd.c_str()); - slep(2); //tempo para matar o processo + sleep(2); //tempo para matar o processo string command = "cd "; -- libgit2 0.21.2