ffmpeg : music_meta add year.

This commit is contained in:
Dmitry Voronin 2023-11-30 16:53:52 +03:00
parent ed39fa7be9
commit 2db11c20b0

View file

@ -56,7 +56,7 @@ ffmpeg_music_meta()
local title="${file#*_}"; title="${title%.*}"; title="${title//_/ }"
# echo "${artist}; ${album}; ${year}; ${track}; ${title}"
ffmpeg -i "${file}" -c copy -metadata "artist=${artist}" -metadata "album_artist=${artist}" -metadata "album=${album}" -metadata "date=${year}" -metadata "track=${track}" -metadata "title=${title}" ./out/"${file}" || return 1
ffmpeg -i "${file}" -c copy -metadata "artist=${artist}" -metadata "album_artist=${artist}" -metadata "album=${album}" -metadata "date=${year}" -metadata "year=${year}" -metadata "track=${track}" -metadata "title=${title}" ./out/"${file}" || return 1
done
mv out/* .