Musish: removed
parent
d302dc7e72
commit
ad7fcb0bf8
|
@ -1,21 +0,0 @@
|
|||
## Default script.
|
||||
script="vorbis"
|
||||
|
||||
## Root of all output files.
|
||||
library="$HOME/musics"
|
||||
library_ext="/media/backup2/Musics"
|
||||
library_temp="$HOME/lib"
|
||||
|
||||
## Terminal output. Turn it off when not redirecting to stdout.
|
||||
use_colors=true
|
||||
use_formatting=true
|
||||
|
||||
## Replace chars: same as default with [] -> ()
|
||||
tagsed="s/[’´]/'/g; s/]/)/g; s/\[/(/g; s| *[/|\\:] *| - |g"
|
||||
|
||||
## French
|
||||
constants="$constants un une de du le la les et mais pour ni ou à a où contre entre chez dans sur que qui "
|
||||
## German
|
||||
constants="$constants der die das den dem des ein eine einen eines einer wo an am in bei aus mit nach seit von zu vom zur zum durch für gegen ohne um "
|
||||
## Music
|
||||
constants="$constants d'Acide JBX "
|
|
@ -1,44 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
## X-Ray Dog.
|
||||
artist="X-Ray Dog"
|
||||
## Albums actually have years, but is it relevent since they have a code?
|
||||
date=""
|
||||
## Genre could be Soundtrack, or Trailer Music. We choose "" for now.
|
||||
genre=""
|
||||
|
||||
## Extract album code, assuming parent folder is "XRCD## - $album".
|
||||
XRCD="${FILENAME%/*}"
|
||||
XRCD="${XRCD##*/}"
|
||||
XRCD="${XRCD%% - *}"
|
||||
|
||||
## Append the album code to the constants array, other it will be capitalized.
|
||||
constants="$constants $XRCD "
|
||||
|
||||
if [ -z "${album%%XRCD *}" ]; then
|
||||
## Change "XRCD - ## - ..." -> "XRCD## - "
|
||||
album="${album#XRCD}"
|
||||
album="${album##*[0-9] }"
|
||||
album="${album#-}"
|
||||
album="$XRCD - $album"
|
||||
elif [ -n "${album%%XRCD*}" ]; then
|
||||
album="$XRCD - $album"
|
||||
fi
|
||||
|
||||
if [ -z "${title}" ]; then
|
||||
title="${FILENAME##*/}"
|
||||
title="${title%.*}"
|
||||
# title="$(echo "$title" | sed 's/X-Ray Dog//')"
|
||||
title="$(echo "$title" | sed 's/X-Ray Dog\( \?- \?\)\?//')"
|
||||
fi
|
||||
if [ -z "${track}" ]; then
|
||||
track="${title% *}"
|
||||
title="${title#* }"
|
||||
fi
|
||||
|
||||
subscript="$(findscript vorbis)"
|
||||
if [ ! -f "$subscript" ]; then
|
||||
_error "Subscript '$subscript' not found."
|
||||
else
|
||||
. "$subscript"
|
||||
fi
|
Loading…
Reference in New Issue