rvp
I get this:
~/.git/github/fmui $ ./fmui
/home/dave/.git/github/fmui/cover.sh: line 91: syntax error near unexpected token `fi'
/home/dave/.git/github/fmui/cover.sh: line 91: ` fi'
/home/dave/.git/github/fmui/./fmui: line 96: Cover::stop_ueberzug: command not found
/home/dave/.git/github/fmui/./fmui: line 98: Cover::start_ueberzug: command not found
/home/dave/.git/github/fmui/./fmui: line 91: Cover::stop_ueberzug: command not found
And no cover images are being displayed now,
73 function Cover::create_image {
74 local max_width="$1" path_file="$2" path_output="$3"
75
76 case "`File::get_mime_type "$path_file"`" in
77 video/*)
78 Video::extract_random_frame "$max_width" "$path_file" "$path_output"
79 ;;
80 audio/*)
81 if Music::contains_album_cover "$path_file"; then
82 Music::extract_album_cover "$max_width" "$path_file" "$path_output"
83 else
84 local found=false
85 for f in "${path_file%.*}".{jpg,jpeg,png,webp,bmp} \
86 "$(dirname "$path_file")"/{C,c}over.{jpg,jpeg,png,webp,bmp}; do
87 test -r "$f" && { path_file="$f"; found=true; break; }
88 done
89 if $found
90 Music::extract_album_cover "$max_width" "$path_file" "$path_output"
91 fi
92 fi
93 ;;
94 esac
95 }