diff --git a/src/common.cpp b/src/common.cpp index 375bd1b..a417e68 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -151,7 +151,7 @@ void enforceMaxEvents(shared_t *share) if (exists(imgFile)) remove(imgFile); if (exists(webFile)) remove(webFile); } - + names.erase(names.begin()); } } @@ -364,6 +364,9 @@ uint64_t genEpoch() void wrOutm3u8(const pls_t &pls) { + recLog("live-to-event-src: " + pls.clipPath); + recLog("live-to-event-dst: " + pls.dstPath); + createDirTree(path(pls.dstPath).parent_path().string()); copy_file(pls.clipPath, pls.dstPath); diff --git a/src/common.h b/src/common.h index 9c712f2..4c483d7 100644 --- a/src/common.h +++ b/src/common.h @@ -37,7 +37,7 @@ using namespace std; using namespace std::filesystem; using namespace std::chrono; -#define APP_VER "2.0.t2" +#define APP_VER "2.0.t3" #define APP_NAME "Motion Watch" #define REC_LOG_NAME "rec_log_lines.html" #define DET_LOG_NAME "det_log_lines.html" diff --git a/src/main.cpp b/src/main.cpp index 29d7d31..7453bbd 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -47,12 +47,12 @@ void eventLoop(shared_t *share) if (!exists(pls.fileName + ".jpg")) { - imwrite(string(pls.fileName + "jpg").c_str(), pls.thumbnail); + imwrite(string(pls.fileName + ".jpg").c_str(), pls.thumbnail); } } catch (filesystem_error &ex) { - recLog("err: could not copy live file: " + pls.clipPath + " reason - " + ex.what(), share); + recLog("err: " + ex.what(), share); } share->recList.erase(share->recList.begin());