1 2 3 4 5 6 7 8
#!/bin/sh tmp="$(mktemp -d)" trap 'rm -rf "$tmp"' EXIT cd "$tmp" yt-dlpm $1 beet import -m . $2