Created
November 5, 2022 15:33
-
-
Save allmeta/e99e81452d443ce5bdb93064fab2fbc5 to your computer and use it in GitHub Desktop.
add metadata from lightaudio tracks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add metadata from lightaudio tracks | |
$items = ls *lightaudio* | |
foreach ($i in $items) { | |
$s=($i.name -split "\(www.lightaudio.ru\)")[0] -split " — " | |
$title=$s[1] | |
$artist=$s[0] | |
ffmpeg -i "$i" -metadata title=$title -metadata artist=$artist -c copy "out$($i.extension)" | |
mv -Force "out$($i.extension)" $i | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment