allow out of source configs
This commit is contained in:
parent
75297e8d4d
commit
95d0b230e2
|
@ -1,4 +1,3 @@
|
||||||
watch Commie 'Yuyushiki - \d\d' 'Aiura - \d\d'
|
watch Commie 'Yuyushiki - \d\d' 'Aiura - \d\d'
|
||||||
watch rori 'Hentai Ouji to Warawanai Neko - '
|
watch rori 'Hentai Ouji to Warawanai Neko - '
|
||||||
watch FFF 'DATE A LIVE - \d\d(?!v0)'
|
watch FFF 'DATE A LIVE - \d\d(?!v0)'
|
||||||
#watch 'Nimei-Raws' '.'
|
|
||||||
|
|
4
meow.sh
4
meow.sh
|
@ -15,11 +15,11 @@ sanitize() {
|
||||||
}
|
}
|
||||||
|
|
||||||
splittags() {
|
splittags() {
|
||||||
awk -v tag="$1" -f splittags.awk
|
awk -v tag="$1" -f "$SRCDIR/splittags.awk"
|
||||||
}
|
}
|
||||||
|
|
||||||
scrape() {
|
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
|
declare -A groupinsane # unsanitized group names
|
||||||
|
|
4
run
4
run
|
@ -1,11 +1,13 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
SRCDIR="$(readlink -f "$(dirname "$0")" )"
|
||||||
|
|
||||||
prettify() {
|
prettify() {
|
||||||
while IFS=$SEP read -r title torrent time; do
|
while IFS=$SEP read -r title torrent time; do
|
||||||
echo "$title"$'\n'"dl:"$'\t'"$torrent"$'\n'"at:"$'\t'"$(date -d @"$time")"
|
echo "$title"$'\n'"dl:"$'\t'"$torrent"$'\n'"at:"$'\t'"$(date -d @"$time")"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
. meow.sh
|
. "$SRCDIR/meow.sh"
|
||||||
. config.sh
|
. config.sh
|
||||||
[ -e times.sh ] && { . times.sh; mv times.sh times.sh.old; }
|
[ -e times.sh ] && { . times.sh; mv times.sh times.sh.old; }
|
||||||
runall | prettify
|
runall | prettify
|
||||||
|
|
Loading…
Reference in New Issue
Block a user