Revert "Remove partial clip dedupe support"

This reverts commit caa009b222.
This commit is contained in:
Chris Down 2018-02-20 10:38:48 +00:00
parent 8896df9011
commit 0b885650fe

View file

@ -160,6 +160,15 @@ while true; do
continue continue
fi fi
# If we were in the middle of doing a selection when the previous poll
# ran, then we may have got a partial clip.
possible_partial=${last_data[$selection]}
if [[ $possible_partial && $data == "$possible_partial"* ]]; then
debug "$possible_partial is a possible partial of $data"
debug "Removing ${last_filename[$selection]}"
rm -- "${last_filename[$selection]}"
fi
last_data[$selection]=$data last_data[$selection]=$data
first_line=$(get_first_line "$data") first_line=$(get_first_line "$data")