commit eabb9031c020b5a7441709f09c43d6951656b3e1 parent b9bc029b96488aaa64c2b3a4a9475bbee1f8a792 Author: Sven Möller <sven-moeller@outlook.de> Date: Sun, 26 Dec 2021 14:57:24 +0100 Not working yet, but need to leave Diffstat:
M | bin/.local/bin/bm | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/bin/.local/bin/bm b/bin/.local/bin/bm @@ -49,7 +49,9 @@ open () { download () { url="$(get_url $1 $2)" - pandoc --verbose -o "$BM_DIR/saved/$(echo "$url" | sha1sum | cut -d' ' -f1).epub" "$url" + title="$(sed 's_/$__' | rev | cut -d'/' -f1 | rev | sed 's_\..*__')" + echo $title + pandoc --verbose -o "$BM_DIR/saved/$title.epub" "$url" } interactive () {