Tag guessing config

This commit is contained in:
Vincent Riquer 2025-04-24 03:27:18 +02:00 committed by ScriptFanix
parent 1df976bcae
commit 298f6f1c60
3 changed files with 28 additions and 0 deletions

View File

@ -7,5 +7,11 @@ getConfigSource() {
'skip') 'skip')
skippeddirectories+=( "$value" ) skippeddirectories+=( "$value" )
;; ;;
'tag-guessing')
tagguessing="$value"
;;
'tag-guessing-triggers')
tagguessingtriggers="$value"
;;
esac esac
} }

View File

@ -21,6 +21,9 @@ printConfig() {
printed=1 printed=1
done done
unset printed unset printed
echo " |Tag guessing expression|$tagguessing"
echo " |Tag guessing triggers|$tagguessingtriggers"
for destination in ${destinations[@]} for destination in ${destinations[@]}
do do
cat <<-EOF cat <<-EOF

View File

@ -51,6 +51,25 @@ path $sourcepath
cat <<-EOCfg cat <<-EOCfg
# Tag guessing expresssion. Uses same values as "rename" below. This is used to
# guess tags from filenames and paths. This is useful for files with no tags but
# can lead to issues if a strict naming scheme is not used.
# Tag guessing disabled if unset (default).
# %{album},
# %{albumartist},
# %{artist},
# %{disc} (1 digit),
# %{genre},
# %{releasecountry} (2 letter code),
# %{title},
# %{track} (2 digits),
# %{year}.
#tag-guessing %{genre}/%{albumartist}/%{year}-%{album}-%{releasecountry}/%{disk}%{track}--%{artist}-%{title}
# Guess tags on missing infos:
#tag-missing-triggers artist,albumartist,title,track,year,genre
EOCfg EOCfg
for destination in "${destinations[@]}" for destination in "${destinations[@]}"
do do