commit ccf219e35baaed63822338f39bc39fd61ad17269
parent 45e7c2163a9ec9fc20128b8cf3eb5acc43a5ed04
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 15 Sep 2020 11:48:49 +0200
plumb: strip scholar url in separate preprocessing step
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/.local/bin/plumb b/.local/bin/plumb
@@ -166,6 +166,9 @@ handle_url() {
*scholar.google.*)
t="$(printf '%s' "$t" | \
sed 's/.*scholar_url?url\=//;s/&hl\=.*//')";;
+ esac
+
+ case "$t" in
https://doi.org/10.5194/tc-*)
nf="$(printf %s "$t" | awk -F- '{print NF}')"
h="https://tc.copernicus.org"