don't update existing timestamps
This commit is contained in:
parent
7a0c3df216
commit
4b7102f5dc
7
meow.sh
7
meow.sh
|
@ -73,16 +73,15 @@ runfilter() { # {action} [database]
|
||||||
|
|
||||||
now="$(date +%s)"
|
now="$(date +%s)"
|
||||||
while IFS=$SEP read -r time tid title; do
|
while IFS=$SEP read -r time tid title; do
|
||||||
[ -n "${already[$tid]}" ] \
|
[ -n "${already[$tid]}" ] || {
|
||||||
|| $action $time $tid "$title" \
|
$action $time $tid "$title" && already[$tid]="$now"
|
||||||
|| {
|
} || {
|
||||||
echo "[meow.sh] failed to run $action" >&2
|
echo "[meow.sh] failed to run $action" >&2
|
||||||
echo "[meow.sh] torrent title: $title" >&2
|
echo "[meow.sh] torrent title: $title" >&2
|
||||||
echo "[meow.sh] torrent id: $tid" >&2
|
echo "[meow.sh] torrent id: $tid" >&2
|
||||||
ret=1
|
ret=1
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
already[$tid]="$now"
|
|
||||||
done < <(for regex in "${searchregex[@]}"; do
|
done < <(for regex in "${searchregex[@]}"; do
|
||||||
searchfilter "$db" "${regex:1}"
|
searchfilter "$db" "${regex:1}"
|
||||||
done)
|
done)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user