Skip to content

Instantly share code, notes, and snippets.

@allmeta
Created November 5, 2022 15:33
Show Gist options
  • Save allmeta/e99e81452d443ce5bdb93064fab2fbc5 to your computer and use it in GitHub Desktop.
Save allmeta/e99e81452d443ce5bdb93064fab2fbc5 to your computer and use it in GitHub Desktop.
add metadata from lightaudio tracks
# 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