-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcyanrip.sh
executable file
·39 lines (36 loc) · 1.01 KB
/
cyanrip.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
# path: /home/klassiker/.local/share/repos/shell/cyanrip.sh
# author: klassiker [mrdotx]
# github: https://github.com/mrdotx/shell
# date: 2024-01-07T10:09:44+0100
case "$1" in
-V|-h|-f|-I)
cyanrip "$1"
exit
;;
--sampler)
shift
folder="{album} [{format}]"
track="{album} - {if #totaldiscs# > #1#|disc|-}{track} - {artist} - {title}" \
log="{album}{if #totaldiscs# > #1# - CD|disc|}"
cue="{album}{if #totaldiscs# > #1# - CD|disc|}"
;;
*)
folder="{album_artist} - {album} [{format}]"
track="{album_artist} - {album} - {if #totaldiscs# > #1#|disc|-}{track} - {title}"
log="{album_artist} - {album}{if #totaldiscs# > #1# - CD|disc|}"
cue="{album_artist} - {album}{if #totaldiscs# > #1# - CD|disc|}"
;;
esac
# determine the value for -s with -f
cyanrip \
-s 6 \
-o wav,mp3 \
-b 192 \
"$@" \
-T simple \
-D "$folder" \
-F "$track" \
-L "$log" \
-M "$cue" \
-Q