From 86e19f2089b5a971b9bc7a3db470a3fabe891244 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 4 Apr 2019 19:09:10 +0100 Subject: [PATCH] fix a bug eyeD3 throws an error if a description containing a ":". so escape it first --- furaffinity-dl-ng | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/furaffinity-dl-ng b/furaffinity-dl-ng index e0285c6..64f2b9c 100755 --- a/furaffinity-dl-ng +++ b/furaffinity-dl-ng @@ -143,7 +143,12 @@ https://github.com/Xerbo/furaffinity-dl-ng/issues" >&2 else # Use eyeD3 for injecting injecting metadata into audio files (if it's installed) if [ $eyed3 ] && [ $metadata ]; then - eyeD3 -t "$title" --add-comment "$description" "$file" + if [ -z "$description" ]; then + eyeD3 -t "$title" "$file" + else + # HACK eyeD3 throws an error if a description containing a ":" + eyeD3 -t "$title" --add-comment "${description//:/\\:}" "$file" + fi fi fi done