diff --git a/config.sh b/config.sh index 5062b5f..59dcb88 100644 --- a/config.sh +++ b/config.sh @@ -1,4 +1,3 @@ watch Commie 'Yuyushiki - \d\d' 'Aiura - \d\d' watch rori 'Hentai Ouji to Warawanai Neko - ' watch FFF 'DATE A LIVE - \d\d(?!v0)' -#watch 'Nimei-Raws' '.' diff --git a/meow.sh b/meow.sh index 64162b1..31bd3e7 100644 --- a/meow.sh +++ b/meow.sh @@ -15,11 +15,11 @@ sanitize() { } splittags() { - awk -v tag="$1" -f splittags.awk + awk -v tag="$1" -f "$SRCDIR/splittags.awk" } scrape() { - TZ=UTC0 awk -v g="$1" -v timestamp="${2:-0}" -v sep="$SEP" -f scrape.awk + TZ=UTC0 awk -v g="$1" -v timestamp="${2:-0}" -v sep="$SEP" -f "$SRCDIR/scrape.awk" } declare -A groupinsane # unsanitized group names diff --git a/run b/run index 00bbf5c..4f983ec 100755 --- a/run +++ b/run @@ -1,11 +1,13 @@ #!/usr/bin/env bash +SRCDIR="$(readlink -f "$(dirname "$0")" )" + prettify() { while IFS=$SEP read -r title torrent time; do echo "$title"$'\n'"dl:"$'\t'"$torrent"$'\n'"at:"$'\t'"$(date -d @"$time")" done } -. meow.sh +. "$SRCDIR/meow.sh" . config.sh [ -e times.sh ] && { . times.sh; mv times.sh times.sh.old; } runall | prettify