$u = "
https://soundcloud.com/downtowndisco/downtown-disco-live-26-08-2022-ian-ossia-birdee-dr-packer-lisa-jane"; $id = yt-dlp --skip-download --no-simulate --write-thumbnail --convert-thumbnails jpg --print id -o "%(id)s.%(ext)s" $u; if (-not $id) { "yt-dlp couldn't read the track" } else { $t = Get-ChildItem -Filter "*$id*" | Where-Object { $_.Extension -in '.mp3','.m4a' -and $_.Name -notlike '*(cover)*' } | Select-Object -First 1; if ($t) { ffmpeg -hide_banner -i $t.FullName -i "$id.jpg" -map 0:a -map 1 -c copy -disposition:v:0 attached_pic (Join-Path $t.DirectoryName ($t.BaseName + " (cover)" + $t.Extension)) } else { yt-dlp --embed-thumbnail --embed-metadata $u } }