diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-07-29 12:27:24 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-07-29 12:27:24 +0200 |
| commit | e182ac89dc1caa612c708d0f8c98627cd55563c9 (patch) | |
| tree | 6b3b8bb52977e9b9555027a3733655c740ddb421 | |
| parent | 4f2fba37a5dfa4df5e09c106a2b1d43e1c22b608 (diff) | |
| download | bridge-e182ac89dc1caa612c708d0f8c98627cd55563c9.tar.gz bridge-e182ac89dc1caa612c708d0f8c98627cd55563c9.zip | |
do not allow split grabs to overlap
| -rw-r--r-- | service_grab.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service_grab.js b/service_grab.js index 6ffec1f..301e9f5 100644 --- a/service_grab.js +++ b/service_grab.js @@ -144,7 +144,7 @@ module.exports = class Analyzer extends Service { // push a deep clone or the object will have the reference to part_start // which leads to all start/end dates being the same (?!) payloads.push(JSON.parse(JSON.stringify(pl))); // JavaScript sucks. - part_start = part_end; + part_start.setSeconds(part_end.getSeconds() + 1); // do not overlap start&end, or a match at created_at=start=end will appear twice } return payloads; } |
