+3
scripts/lyricfetch.nu
+3
scripts/lyricfetch.nu
···
45
45
fetch-lyrics dumb --instance $dumb_instance $"($meta.artist) ($meta.title)"
46
46
| if $in == null {
47
47
print $"(ansi red)No lyrics found for (ansi yellow)($meta.artist) – ($meta.title)(ansi reset)"
48
+
} else if ($in | is-empty) {
49
+
metaflac $file --remove-tag $"LYRICS"
50
+
print $"Updated lyrics for (ansi green)($meta.artist) – ($meta.title)(ansi reset)"
48
51
} else {
49
52
metaflac $file --set-tag $"LYRICS=($in)"
50
53
print $"Updated lyrics for (ansi green)($meta.artist) – ($meta.title)(ansi reset)"