diff --git a/chapter.sh b/chapter.sh index a2a7f8c..6d5db01 100644 --- a/chapter.sh +++ b/chapter.sh @@ -5,7 +5,7 @@ num=$(echo "$1" | sed -e 's/.*- \(.*\) -.*/\1/') path="/d/hd0/Hoerbuecher/podcasts/tkkg" url=$2 -curl=$(curl "$url" | grep 'C' | sed 's/\([0-9][0-9]:[0-9][0-9]:[0-9][0-9]\)/\1\n/g' | sed -e 's/.*215/215/g' | sed -e 's/\(215.*\)<\/td>\(.*\)$/\1\2/g' -e 's/ //g' | grep 215) +curl=$(curl "$url" | grep 'C' | sed 's/\([0-9][0-9]:[0-9][0-9]:[0-9][0-9]\)/\1\n/g' | sed -e "s/.*$num/$num/g" | sed -e "s/\($num.*\)<\/td>\(.*\)$/\1\2/g" -e 's/ //g' | grep "$num") echo $curl