summaryrefslogtreecommitdiffstats
path: root/.local/bin/tag
diff options
context:
space:
mode:
authorManuel <64824522+maltalef101@users.noreply.github.com>2020-09-30 16:15:01 -0300
committerGitHub <noreply@github.com>2020-09-30 15:15:01 -0400
commit687e2e1ef63ffab7bb2edd4661843efe7ddefaca (patch)
treef2ae173a6fd0291fa7310d02a3a40cf1d37e2962 /.local/bin/tag
parent8e8c702e23122c8d5ed41db4d205d87ba8e43cec (diff)
downloadeibhear-687e2e1ef63ffab7bb2edd4661843efe7ddefaca.tar.gz
eibhear-687e2e1ef63ffab7bb2edd4661843efe7ddefaca.tar.zst
eibhear-687e2e1ef63ffab7bb2edd4661843efe7ddefaca.zip
Added support for flac tags via metaflac (#823)
Diffstat (limited to '.local/bin/tag')
-rwxr-xr-x.local/bin/tag8
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/tag b/.local/bin/tag
index c23be4e..8462b99 100755
--- a/.local/bin/tag
+++ b/.local/bin/tag
@@ -55,5 +55,13 @@ Date=$date
Genre=$genre
Comment=$comment" | opustags -i -S "$file" ;;
*.mp3) eyeD3 -Q --remove-all -a "$artist" -A "$album" -t "$title" -n "$track" -N "$total" -Y "$date" "$file" ;;
+ *.flac) echo "TITLE=$title
+ARTIST=$artist
+ALBUM=$album
+TRACKNUMBER=$track
+TOTALTRACKS=$total
+DATE=$date
+GENRE=$genre
+DESCRIPTION=$comment" | metaflac --remove-all-tags --import-tags-from=- "$file" ;;
*) echo "File type not implemented yet." ;;
esac